[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.path.expanduser() has flaws. 1. It can return an argument unchanged if failed to determine the home directory. 2. On Unix it does not work for users not found in the local password database. 3. On Windows it only guess the home directory for other users.

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK you can set arbitrary path as user home directory. So home directories of different users can even not be on the same disk, and the last component of the path can be different from the user name. os.path.expanduser() has many flaws, and it just "gues

[issue39674] Keep deprecated features in Python 3.9 to ease migration from Python 2.7, but remove in Python 3.10

2021-04-08 Thread ปพนพัชร์ บรรพจันทร์
Change by ปพนพัชร์ บรรพจันทร์ : -- components: +Unicode -Library (Lib) nosy: +ezio.melotti versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-04-08 Thread Max Bélanger
Change by Max Bélanger : -- nosy: +maxbelanger nosy_count: 18.0 -> 19.0 pull_requests: +24010 pull_request: https://github.com/python/cpython/pull/25274 ___ Python tracker ___ _

[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-04-08 Thread Max Bélanger
Change by Max Bélanger : -- nosy: +maxbelanger nosy_count: 4.0 -> 5.0 pull_requests: +24011 pull_request: https://github.com/python/cpython/pull/25274 ___ Python tracker ___ ___

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-04-08 Thread Maxime Belanger
Maxime Belanger added the comment: I had some time today, so I took a crack at merging this into Python 3.8. I've filed GH-25274 with my proposal. To summarize, I'm suggesting back porting all changes from bpo-41100 (as well as the subsequent bpo-42688) but without the weak-linking changes t

[issue40066] Enum: modify __repr__, __str__; update docs

2021-04-08 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43770] Rework C types initialization

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset b98eba5bc2ffbe7a0ed49d540ebc4f756ae61985 by Victor Stinner in branch 'master': bpo-43770: _PyTypes_Init() inits _PyAnextAwaitable_Type (GH-25266) https://github.com/python/cpython/commit/b98eba5bc2ffbe7a0ed49d540ebc4f756ae61985 -- ___

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-08 Thread Eryk Sun
Eryk Sun added the comment: > os.path.expanduser() has many flaws, and it just "guess" the > home directory for other users. I'm fine with not guessing another user's profile directory (or home directory) in some cases, or even always. But the code that got committed bails out even if the t

[issue43770] Rework C types initialization

2021-04-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24012 pull_request: https://github.com/python/cpython/pull/25275 ___ Python tracker ___ __

[issue43087] ctypes documentation error

2021-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5490b49fa6646c9f48869955c12cf6af9fc3f2a4 by Miss Islington (bot) in branch '3.9': [3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404) https://github.com/python/cpython/commit/5490b49fa6646c9f48869955c12cf6af9fc3f2a4 ---

[issue43087] ctypes documentation error

2021-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 754dc353565eeb4a43a912417cc5b66959458f1b by Miss Islington (bot) in branch '3.8': [3.8] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404) https://github.com/python/cpython/commit/754dc353565eeb4a43a912417cc5b66959458f1b

[issue43087] ctypes documentation error

2021-04-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43770] Rework C types initialization

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: I tried to put assertions in PyObject_GetAttr(), _PyObject_LookupAttr(), _PyObject_GetMethod() and PyObject_SetAttr() to ensure that the type is ready. It breaks many tests, examples: test_buffer test_pickle test_picklebuffer test_pickletools test_st

[issue42134] Raise ImportWarning when falling back to find_module()

2021-04-08 Thread Miro Hrončok
Miro Hrončok added the comment: Brett, would you accept a PR that changes the changelog entry to contain the ".find_spec() not found; falling back to find_module()" message, for better search-ability? I needed to use grep + git blame to be able to find out what's going on. Also, could you pl

[issue35889] sqlite3.Row doesn't have useful repr

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: AFAICS, this is fixed by the attached one-liner, based on Serhiy's suggestion (based on Raymond's suggestion). $ python3.10 test.py $ ./python.exe test.py # patch applied $ cat test.py import sqlite3 cx = sqlite3.connect(":memory:") cx.row_factory

[issue42134] Raise ImportWarning when falling back to find_module()

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43540 "importlib: Document how to replace load_module() in What's New in Python 3.10". -- ___ Python tracker ___ __

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: find_module() and find_loader() are now also deprecated (bpo-42134). Currently, What's New in Python 3.10 says: "(superseded by exec_module())". It would be great to have a documentation like the good subprocess "replacement" documentation: https://docs.pyth

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: Concrete issue: setuptools defines a VendorImporter class with find_module() method, but no find_spec() method. How can it be ported to Python 3.10? https://github.com/pypa/setuptools/issues/2632 -- nosy: +hroncok ___

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-08 Thread Bill Collins
Bill Collins added the comment: The embeddable dists for 3.9.4 have updated, but the 3.8.9 packages are still showing the builds from April 2nd. -- ___ Python tracker ___ ___

[issue35889] sqlite3.Row doesn't have useful repr

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Even better, let's keep Row as it is and just add this as an example in the docs. If a verbose repr is needed, it's easy to override __repr__. -- ___ Python tracker ___

[issue43771] [Windows] stdin line buffer size

2021-04-08 Thread Andrey Moiseev
New submission from Andrey Moiseev : sys.stdin.readline() in Windows console only allows 512 characters on input per line. So large pastes are truncated at 512 chars, which is a bit inconvenient for prototyping. The buffer size seems to be determined by BUFSIZ compile time constant: https://g

[issue43770] Rework C types initialization

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: PR 25275: this is a subtle difference if PyTypeObject.tp_setattro is set statically to PyObject_GenericSetAttr() or if it's inherited by PyType_Ready(). Reference (master):: * BaseException.__dict__['__setattr__'] = * BaseException.__setattr__ = With the

[issue43771] [Windows] stdin line buffer size

2021-04-08 Thread Eryk Sun
Eryk Sun added the comment: The limit of 512 characters is not for sys.stdin in general. It's for io._WindowsConsoleIO, which gets used as the raw file for non-redirected sys.stdin -- and opening "CON" and "CONIN$" -- if legacy mode isn't enabled. See bpo-41849. -- nosy: +eryksun re

[issue35889] sqlite3.Row doesn't have useful repr

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Suggesting to either close this or add an example to the docs. Up to Berker / Serhiy. -- Added file: https://bugs.python.org/file49942/patch.diff ___ Python tracker ___

[issue43760] The DISPATCH() macro is not as efficient as it could be.

2021-04-08 Thread Mark Shannon
Mark Shannon added the comment: New changeset 28d28e053db6b69d91c2dfd579207cd8ccbc39e7 by Mark Shannon in branch 'master': bpo-43760: Streamline dispatch sequence for machines without computed gotos. (GH-25244) https://github.com/python/cpython/commit/28d28e053db6b69d91c2dfd579207cd8ccbc39e7

[issue43661] api-ms-win-core-path-l1-1.0.dll, redux of 40740 (which has since been closed)

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Closing as a duplicate. Any discussion should be on the original issue. -- nosy: +eric.smith resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under

[issue43772] Minor repr error in typing.TypeVar.__ror__()

2021-04-08 Thread Larry Hastings
New submission from Larry Hastings : The implementation of the | operator for TypeVar objects is as follows: def __or__(self, right): return Union[self, right] def __ror__(self, right): return Union[self, right] I think the implementation of __ror__ is ever-so-slightly

[issue43760] The DISPATCH() macro is not as efficient as it could be.

2021-04-08 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +24013 pull_request: https://github.com/python/cpython/pull/25276 ___ Python tracker ___

[issue43682] Make static methods created by @staticmethod callable

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: There is a nice side effect of PR 25268 + PR 25117: pydoc provides better self documentation for the following code: class X: @staticmethod def sm(x, y): '''A static method''' ... pydoc on X.sm: --- sm(x, y) A static method --- i

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: Mark: > `is` is not well defined except for a small set of values, so the docs for > `Py_Is` would have to so vague as to be worthless, IMO. I don't propose to change the "is" operator semantic: Py_Is(x, y) is C would behave *exaclty* as "x is y" in Python.

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-08 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24014 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25277 ___ Python tracker ___ _

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-08 Thread Anthony Flury
Change by Anthony Flury : -- pull_requests: +24015 pull_request: https://github.com/python/cpython/pull/25279 ___ Python tracker ___ ___

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-08 Thread Barney Gale
Barney Gale added the comment: Thanks for the feedback. 1. We can check the return value, like we do in `Path.expanduser()` 2. Seems like expected behaviour? 3. Worth fixing in `ntpath.expanduser()` I think. See Eryk Sun's comment here: https://bugs.python.org/issue39899#msg390507 --

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-08 Thread Barney Gale
Barney Gale added the comment: Good spot Eryk - I've put in another PR to address it. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue43773] macOS official installer builds not respecting DYLD_LIBRARY_PATH environment variable.

2021-04-08 Thread Carlton Gibson
New submission from Carlton Gibson : Hi. On MacOS 11.3 "Big Sur", with the latest 3.9.4 installed with the official installer downloaded from python.org, the DYLD_LIBRARY_PATH environment variable is not being respected. This looks very similar to Issue40198 https://bugs.python.org/issue401

[issue43715] curses inch() and scrbkgd() documentation ommissions

2021-04-08 Thread Mariatta
Mariatta added the comment: Thanks for the patch, but I find it difficult to read in plain text. Can you create a pull request with the your suggested changes? -- nosy: +Mariatta ___ Python tracker

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-08 Thread Anthony Flury
Change by Anthony Flury : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-08 Thread Anthony Flury
Change by Anthony Flury : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Pyth

[issue43772] Minor repr error in typing.TypeVar.__ror__()

2021-04-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread conchylicultor
conchylicultor added the comment: > Do you have an actual use case for self-referential annotations? I'm not sure I understand the question. My use case is the following: ``` from ... import losses class A: losses: losses.Losses = losses.Losses() ``` Currently this is failing be cause thi

[issue43747] Can't create new interpreter in multi thread

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: You might have more luck asking on the capi-sig mailing list: https://mail.python.org/mailman3/lists/capi-sig.python.org/ I'm going to close this, because it looks like a usage question and not a bug. If it turns out to be a bug, please re-open this issue. -

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Larry Hastings
Larry Hastings added the comment: By "use case", I mean, what problem are you solving in a useful program by doing this? So far it seems like a pointless exercise in seeing what funny behavior you can try with annotations. -- ___ Python tracker

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread conchylicultor
conchylicultor added the comment: The above example is a real world example I have currently have. Basically I have some dataclass based configuration like: in losses.py: ``` class LossesParams: ... ``` in dataset.py: ``` class DatasetParams: ... ``` in config.py: ``` @dataclasses.datacla

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-08 Thread Eryk Sun
Eryk Sun added the comment: > 3. Worth fixing in `ntpath.expanduser()` To expand on the suggestion in msg390507, here's a demo that implements getting the profile path of a local user account, with support for the special profile directories "Default", "Public", and "ProgramData" (i.e. ALLU

[issue39674] Keep deprecated features in Python 3.9 to ease migration from Python 2.7, but remove in Python 3.10

2021-04-08 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 5.0 -> 6.0 pull_requests: +24016 pull_request: https://github.com/python/cpython/pull/25280 ___ Python tracker ___ __

[issue39674] Keep deprecated features in Python 3.9 to ease migration from Python 2.7, but remove in Python 3.10

2021-04-08 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +24017 pull_request: https://github.com/python/cpython/pull/25281 ___ Python tracker ___ ___

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-08 Thread STINNER Victor
New submission from STINNER Victor : Attached PR documents configure, compiler and linker options to build Python. -- assignee: docs@python components: Documentation messages: 390536 nosy: docs@python, vstinner priority: normal severity: normal status: open title: [Doc] Document configu

[issue43766] Implement PEP 647 (User-Defined Type Guards) in typing.py

2021-04-08 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +24018 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25282 ___ Python tracker ___

[issue43766] Implement PEP 647 (User-Defined Type Guards) in typing.py

2021-04-08 Thread Ken Jin
Ken Jin added the comment: > I assume that this will be pretty simple, right? Yep! The PR speaks for itself ;). typing.py has pretty nice internal constructs to make these types of additions a breeze. I'm really grateful to whoever wrote/refactored the _SpecialForm decorator to what it is to

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-08 Thread Steve Dower
Steve Dower added the comment: I just purged the CDN again and it seems to be fine now. -- ___ Python tracker ___ ___ Python-bugs-l

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24019 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25283 ___ Python tracker ___ _

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-08 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +24020 pull_request: https://github.com/python/cpython/pull/25284 ___ Python tracker ___ ___

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-08 Thread Maria Kazakova
New submission from Maria Kazakova : I tried to use the usual code: response = requests.get (url) response.json () OR json.loads (response.text) BUT it returns JSONDecodeError Expecting value: line 1 column 1 (char 0) — no matter, which website I am trying to parse, with headers or without them.

[issue43772] Minor repr error in typing.TypeVar.__ror__()

2021-04-08 Thread Guido van Rossum
Guido van Rossum added the comment: Yes.-- --Guido (mobile) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue40066] Enum: modify __repr__, __str__; update docs

2021-04-08 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: @vstinner: I think I figure out the solution — https://github.com/pypa/setuptools/pull/2633 -- nosy: +webknjaz ___ Python tracker ___ _

[issue43776] Popen with shell=True yield mangled repr output

2021-04-08 Thread mkocher
New submission from mkocher : When using Popen with shell=True, the output of the repr is not particularly user friendly. When using the form `p = Popen('python --version'.split())`, the output is reasonably output in a user friendly form of ``. However, when running with `shell=True`, the

[issue43739] Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type.

2021-04-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Please have a review. -- type: compile error -> ___ Python tracker ___ ___ Python-bugs-list mai

[issue43751] await anext() returns None when default is given

2021-04-08 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: JSON is not HTML. If response.text contains HTML, it is expected that json.loads() cannot parse it. -- nosy: +serhiy.storchaka ___ Python tracker

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with Steven that minor fact should not be given more weight. It has a specification in the Reference and it own FAQ entry. IMO it doesn't belong in tutorial because having a negative modulus is rare and because burying the use in details makes th

[issue38659] enum classes cause slow startup time

2021-04-08 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +24021 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25285 ___ Python tracker

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-08 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset d92c59f48680122ce0e4d1ccf69d92b983e8db01 by Brandt Bucher in branch 'master': bpo-43764: Fix `__match_args__` generation logic for dataclasses (GH-25284) https://github.com/python/cpython/commit/d92c59f48680122ce0e4d1ccf69d92b983e8db01

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Two days ago everything worked completely fine, > and now this disaster happens. It's unlikely that Python itself changed over those two days. It's more likely that the data source has changed. Try this in your notebook: import requests r = re

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Can you put together an example we can actually run? -- nosy: +eric.smith ___ Python tracker ___ _

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Eric V. Smith
Change by Eric V. Smith : -- Removed message: https://bugs.python.org/msg390548 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Can you put together an example we can run? Either from a single file, or multiple modules in the current directory? The "..." import makes it complicated to reproduce. -- ___ Python tracker

[issue43777] Remove description of "pip search" command from tutorial

2021-04-08 Thread Bob Kline
New submission from Bob Kline : The official tutorial instructs users to find third-party packages by using the "pip search" command, which no longer works (and will be deprecated -- and presumably subsequently removed -- according to the error message). See https://docs.python.org/3.10/tutor

[issue43773] macOS official installer builds not respecting DYLD_LIBRARY_PATH environment variable.

2021-04-08 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. However, I think you've drawn the wrong conclusion form what you've observed. The reason you are unable to do what you are trying to do is that the _sqlite3 module included with the python.org macOS Pythons is statically linked with its own

[issue43778] [Doc] Doc/tools/extensions/glossary_search.py fails with FileNotFoundError if the _static/ directory doesn't exist

2021-04-08 Thread STINNER Victor
New submission from STINNER Victor : Doc/tools/extensions/glossary_search.py failed multiple times on my doc PR: https://github.com/python/cpython/pull/25283 The fail is not deterministic (random error, timing issue?), it depends if the directory was already created by something else or not.

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset a41782cc84bcd813209a03e6e11c60e77dbc7718 by Victor Stinner in branch 'master': bpo-43774: Document configure options (GH-25283) https://github.com/python/cpython/commit/a41782cc84bcd813209a03e6e11c60e77dbc7718 -- _

[issue43778] [Doc] Doc/tools/extensions/glossary_search.py fails with FileNotFoundError if the _static/ directory doesn't exist

2021-04-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24022 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25286 ___ Python tracker ___ _

[issue42134] Raise ImportWarning when falling back to find_module()

2021-04-08 Thread Brett Cannon
Brett Cannon added the comment: > would you accept a PR that changes the changelog entry to contain the > ".find_spec() not found; falling back to find_module()" message, for better > search-ability? Sure! > Also, could you please explain how to migrate to find_spec() in > https://docs.pyt

[issue43777] Remove description of "pip search" command from tutorial

2021-04-08 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +24023 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25287 ___ Python tracker _

[issue43777] Remove description of "pip search" command from tutorial

2021-04-08 Thread Bob Kline
Bob Kline added the comment: PR submitted: https://github.com/python/cpython/pull/25287 -- ___ Python tracker ___ ___ Python-bugs-l

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Brett Cannon
Brett Cannon added the comment: Much like the question about load_module(), replacing find_module() with find_spec() can be helped with things like importlib.util.spec_from_file_location() and .spec_from_loader() (https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: With Sphinx 2, there is an error on the Docs PR job of Azure Pipelines: Warning, treated as error: /home/vsts/work/1/s/Doc/using/configure.rst:416:unknown option: --enable-universalsdk -- ___ Python tracker

[issue43778] [Doc] Doc/tools/extensions/glossary_search.py fails with FileNotFoundError if the _static/ directory doesn't exist

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset f32d0221477f18993666bb66cc79c61c4e145d42 by Victor Stinner in branch 'master': bpo-43778: Fix Sphinx glossary_search extension (GH-25286) https://github.com/python/cpython/commit/f32d0221477f18993666bb66cc79c61c4e145d42 -- ___

[issue43779] Fix possible _PyArena_AddPyObject ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : _PyArena_AddPyObject() only steals the object reference if successful. - In Parser/pegen.c, _PyPegen_fill_token(), the return value is not checked at all. - In Parser/asdl_c.py, none of the (two) calls to _PyArena_AddPyObject() decref on failure -

[issue43778] [Doc] Doc/tools/extensions/glossary_search.py fails with FileNotFoundError if the _static/ directory doesn't exist

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: Python 3.9 is not affected, this Sphinx extension is new in Python 3.10. By the way, I like this feature! The new " Glossary: borrowed reference " block in: https://docs.python.org/3.10/search.html?q=borrowed+reference -- resolution: -> fixed stage

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: Fix possible _PyArena_AddPyObject ref leaks -> Fix possible parser/AST ref leaks ___ Python tracker ___ __

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-04-08 Thread Benoit Hudson
Benoit Hudson added the comment: Is there any hope of a backport to 3.7? Or has that ship sailed? -- nosy: +benoithudson ___ Python tracker ___ ___

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Erlend. Mind creating a PR from the patch? -- ___ Python tracker ___ ___ Python-bug

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Ah, I see that the Parser/asdl_c.py case is handled by the callers. So that leaves only Parser/pegen.c. -- ___ Python tracker ___ __

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: > Is there any hope of a backport to 3.7? Or has that ship sailed? Python 3.7 doesn't accept bugfixes anymore, nor new features, nor new platofrm support (macOS 11). The 3.7 branch now only accept security fixes: https://devguide.python.org/#status-of-python

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Yes, I'll do that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +24024 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25289 ___ Python tracker ___ __

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > We could also adjust Parser/asdl_c.py to decref right after a failed > _PyArena_AddPyObject() call, instead of goto failure and Py_XDECREF. I'm not > sure it's worth it though. I normally recommend having the least amount of exist paths possible, ma

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2021-04-08 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 1e051a21b7106a93c30b74aad7e1f40d6c0c477b by Saiyang Gou in branch 'master': bpo-39702: Remove dotted_name from decorator documentation (GH-25234) https://github.com/python/cpython/commit/1e051a21b7106a93c30b74aad7e1f40d6c0c477b --

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: We could also adjust Parser/asdl_c.py to decref right after a failed _PyArena_AddPyObject() call, instead of goto failure and Py_XDECREF. I'm not sure it's worth it though. -- Added file: https://bugs.python.org/file49944/parser.diff ___

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2021-04-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24025 pull_request: https://github.com/python/cpython/pull/25290 ___ Python tracker _

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2021-04-08 Thread miss-islington
miss-islington added the comment: New changeset a9228d02d16fe90f2f13e7e9ec478f7b4f8607a2 by Miss Islington (bot) in branch '3.9': [3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290) https://github.com/python/cpython/commit/a9228d02d16fe90f2f13e7e9ec478f7b4f

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24026 pull_request: https://github.com/python/cpython/pull/25293 ___ Python tracker ___ __

[issue39674] Keep deprecated features in Python 3.9 to ease migration from Python 2.7, but remove in Python 3.10

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 20d56bd41b56023ce9fa3739c0c9aa8be8d48bfa by Markus Gerstel in branch '3.8': bpo-39674: Fix collections ABC deprecation notice (GH-25281) https://github.com/python/cpython/commit/20d56bd41b56023ce9fa3739c0c9aa8be8d48bfa --

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-08 Thread Jason R. Coombs
New submission from Jason R. Coombs : Incorporate importlib_metadata changes from 3.8 through 3.10: https://importlib-metadata.readthedocs.io/en/latest/history.html#v3-10-0 Two main changes: - Add mtime-based caching during distribution discovery. - Flagged use of dict result from ``entry_poi

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: The following syntax fails on the Docs PR job of the Azure Pipelines: -- .. cmdoption:: --with-cxx-main .. cmdoption:: --with-cxx-main=COMPILER Compile the Python ``main()`` function and link Python executable with C++ compiler: ``$CXX``,

[issue43751] await anext() returns None when default is given

2021-04-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Un

  1   2   >