[issue43785] bz2 performance issue.

2021-04-08 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24031 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25299 ___ Python tracker ___

[issue43785] bz2 performance issue.

2021-04-08 Thread Inada Naoki
Change by Inada Naoki : -- type: -> performance Added file: https://bugs.python.org/file49949/create.py ___ Python tracker ___ ___

[issue43785] bz2 performance issue.

2021-04-08 Thread Inada Naoki
New submission from Inada Naoki : The original issue is reported here. https://discuss.python.org/t/non-optimal-bz2-reading-speed/6869 1. Only BZ2File uses RLock() lzma and gzip don't use RLock(). It adds significant performance overhead. When I removed `with self._lock:`, decompression speed

[issue43784] [Windows] interpreter hangs indefinitely on subprocess.communicate during __del__ at script exit

2021-04-08 Thread Kevin M
New submission from Kevin M : I've noticed an issue (or user error) in which Python a call that otherwise usually works in the __del__ step of a class will freeze when the Python interpreter is exiting. I've attached sample code that I've ran against Python 3.9.1 on Windows 10. The code

[issue43779] Fix possible parser/AST ref leaks

2021-04-08 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +24030 pull_request: https://github.com/python/cpython/pull/25294 ___ Python tracker ___

[issue43682] Make static methods created by @staticmethod callable

2021-04-08 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38974] using tkinter.filedialog.askopenfilename() freezes python 3.8

2021-04-08 Thread Colin Caprani
Colin Caprani added the comment: In case it helps, I have the same problem. Running python 3.8.8 on Windows 10, and any MWE doesn't work, e.g.: from tkinter import filedialog from tkinter import * root = Tk() root.filename = filedialog.askopenfilename(initialdir = "/",title = "Select

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

2021-04-08 Thread Inada Naoki
Inada Naoki added the comment: You are misreading the error message. > RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable > load and will be deprecated in the near future. See > https://status.python.org/ for more information. This error message says "PyPI's XMLRPC

[issue43783] Make ParamSpec.args/kwargs more useful objects

2021-04-08 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +24029 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25298 ___ Python tracker ___

[issue43782] Failure to build from source on ppc64le on ubuntu xenial

2021-04-08 Thread Zachary Ware
Zachary Ware added the comment: The error message certainly looks more like a compiler bug than a Python bug. FTR, we also have several builders on buildbot.python.org [1] running Fedora or RHEL on PPC64LE, none of which appear to have a problem. [1]

[issue43783] Make ParamSpec.args/kwargs more useful objects

2021-04-08 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- assignee: -> Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43783] Make ParamSpec.args/kwargs more useful objects

2021-04-08 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Currently, typing.ParamSpec.args and ParamSpec.kwargs are just object() instances, which makes them useless for runtime inspection of __annotations__. This type was introduced by PEP 612. Instead, I propose to make them return some special helper object

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

2021-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for adding this. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue43782] Failure to build from source on ppc64le on ubuntu xenial

2021-04-08 Thread Ruairidh MacLeod
Change by Ruairidh MacLeod : -- nosy: +rkm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43782] Failure to build from source on ppc64le on ubuntu xenial

2021-04-08 Thread Anthony Sottile
Anthony Sottile added the comment: hmmm strange, the only changes in 3.9.4 are a revert -- perhaps this is a flakey bug in gcc and not actionable I've clicked rebuild on my build, maybe it'll magically fix it plus xenial is almost end of lifed so I doubt anyone cares about this strange

[issue43782] Failure to build from source on ppc64le on ubuntu xenial

2021-04-08 Thread Ethan Smith
Change by Ethan Smith : -- nosy: +ethan smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43782] Failure to build from source on ppc64le on ubuntu xenial

2021-04-08 Thread Anthony Sottile
New submission from Anthony Sottile : I realize this is unlikely to be a helpful report, but something that changed between 3.9.3 and 3.9.4 has caused the build to break on (admittedly a strange platform) ppc64le I attached the build log (zipped because otherwise it's too big ?) The live

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

2021-04-08 Thread William Pickard
William Pickard added the comment: Actually, the problem is independent of the value of "shell", the __repr__ function from the initial PR that introduced it expects "args" to be a sequence and converts it to a list. -- nosy: +WildCard65 ___

[issue43781] SIGSEGV when replacing _multiprocessing.SemLock at runtime

2021-04-08 Thread Sam Stern
Sam Stern added the comment: This does not arise on 3.8.9 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31956] Add start and stop parameters to the array.index()

2021-04-08 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.7 ___ Python tracker ___

[issue43781] SIGSEGV when replacing _multiprocessing.SemLock at runtime

2021-04-08 Thread Sam Stern
New submission from Sam Stern : When patching `_multiprocessing.SemLock` at runtime and then instantiating an instance of `multiprocessing.Pool`, the interpreter throws a SIGSEGV when trying to access a field of `_multiprocessing.SemLock` on pre-3.9 pythons -- components: Interpreter

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

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 25296 to reuse Doc/requirements.txt in the Docs PR job of Azure Pipelines. It installs Sphinx 3.2.1 as expected, and with this version, no warning is emitted. -- ___ Python tracker

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-08 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +24028 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25297 ___ Python tracker ___

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

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

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

2021-04-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 54366953633dbe5d9585dbae0c633d4e92df2d04 by Victor Stinner in branch 'master': bpo-43774: Enhance configure documentation (GH-25293) https://github.com/python/cpython/commit/54366953633dbe5d9585dbae0c633d4e92df2d04 --

[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: It uses Sphinx 2.2.0. Do we still support Spinx 2.2.0? Collecting sphinx==2.2.0 ... Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 Pygments-2.8.1 alabaster-0.7.12 babel-2.9.0

[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

[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:

[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

[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 --

[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 ___

[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)

[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

[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:

[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

[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 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,

[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 Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Yes, I'll do that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[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:

[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 ___

[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 ___ ___

[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 Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: Fix possible _PyArena_AddPyObject ref leaks -> Fix possible parser/AST ref leaks ___ 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: 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

[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: 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 --

[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

[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()

[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 ___ ___

[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

[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 >

[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 ___

[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
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.

[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

[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

[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

[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 actually run? -- nosy: +eric.smith ___ Python tracker ___

[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 =

[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

[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

[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

[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

[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:

[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

[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`,

[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 ___

[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 ___ ___

[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

[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

[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 ___

[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 ___

[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 ___ ___

[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

[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 ___

[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

[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 ___

[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 ___

[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.

[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: ```

[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

[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 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

[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

[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 ___ ___

[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:

[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

[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

[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 ___ ___

[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

[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 ___

[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 ___

[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:

[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.

[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 ---

[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 ___

[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

[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

  1   2   >