[issue44140] WeakKeyDictionary should support lookup by id instead of hash

2021-05-15 Thread conchylicultor
New submission from conchylicultor : WeakKeyDictionary are great to "associate additional data with an object owned by other parts of an application", as quoted from the doc: https://docs.python.org/3/library/weakref.html#weakref.WeakKeyDictionary However, this currently only works for

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread Miguel Brito
Miguel Brito added the comment: @rhettinger added your suggestion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-05-15 Thread Ken Jin
Ken Jin added the comment: I agree that this subtlety could be expressed better. Thanks for the catch! Would you like to work on this? BTW, only Python 3.9 and higher are still receiving bugfixes (including doc fixes). The older versions are either security fixes only or end of life :).

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-15 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-15 Thread miss-islington
miss-islington added the comment: New changeset 71dca6ea73aaf215fafa094512e8c748248c16b0 by Miss Islington (bot) in branch '3.10': [3.10] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) (GH-26138)

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-15 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24132] Direct sub-classing of pathlib.Path

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24778 pull_request: https://github.com/python/cpython/pull/26141 ___ Python tracker ___

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +24775 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26124 ___ Python tracker ___

[issue44136] Remove pathlib flavours

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +24776 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26141 ___ Python tracker ___

[issue43504] Site linked in docs, effbot.org, down

2021-05-15 Thread Julien Palard
Change by Julien Palard : -- keywords: +easy, newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: Maybe some methods from the Complex class could be moved to the Number class? I think, that something like the ring structure (probably even a commutative ring) is expected from the number classes in the Python. I.e. there should be

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-15 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +24777 pull_request: https://github.com/python/cpython/pull/26142 ___ Python tracker ___

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-05-15 Thread miss-islington
miss-islington added the comment: New changeset b30b25b26663fb6070b8ed86fe3a20dcb557d05d by Antoine Pitrou in branch '3.9': [3.9] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) (GH-26142) https://github.com/python/cpython/commit/b30b25b26663fb6070b8ed86fe3a20dcb557d05d

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2021-05-15 Thread Bonifacio
Bonifacio added the comment: I just read this issue's history and it looks like it is out of date. The docs now match the behaviour. > If the file exists but the mode is different than that specified (or > defaulted) after applying the umask, then an error is raised regardless of > the

[issue44137] importlib.resources.path raises RuntimeError when FileNotFoundError is raise in context manager

2021-05-15 Thread Miguel Brito
Miguel Brito added the comment: I can reproduce this. From what I can see the issue is that `importlib.resources.path` intentionally suppresses `FileNotFoundError` errors. https://github.com/python/cpython/blob/main/Lib/importlib/resources.py#L138 Based on `importlib.resources.path`

[issue44144] Python window not opening

2021-05-15 Thread Dennis Sweeney
Dennis Sweeney added the comment: How are you trying to start the shell? Does "shell window" mean IDLE? What operating system are you using? What do you mean by "it glitches"? -- nosy: +Dennis Sweeney ___ Python tracker

[issue29688] Add support for Path.absolute()

2021-05-15 Thread Barney Gale
Barney Gale added the comment: New PR up here: https://github.com/python/cpython/pull/26153 The correspondence between `pathlib` and `os.path` is as follows: - `Path.resolve()` is roughly `os.path.realpath()` - `Path.absolute()` is roughly `os.path.abspath()` Differences: - `resolve()`

[issue43905] dataclasses.astuple does deepcopy on all fields

2021-05-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 3.0 -> 4.0 pull_requests: +24788 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26154 ___ Python tracker

[issue44123] make function parameter sentinel value true singletons

2021-05-15 Thread Tal Einat
Tal Einat added the comment: > And what you need is just to not pass to the wrapped function arguments which > were not passed to wrapper. *args and **kwargs do not contain arguments which > were not passed. It's common for wrapper functions to mirror the defaults of the wrapped functions

[issue37373] Configuration of windows event loop for libraries

2021-05-15 Thread Ben Darnell
Ben Darnell added the comment: > It's even slightly easier for tornado, which can reasonably set the > proactor-wrapper policy at IOLoop start time, which means > `asyncio.get_event_loop()` returns a loop with add_reader. But pyzmq doesn't > get invoked until an event loop is already

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2021-05-15 Thread Alexey Namyotkin
Change by Alexey Namyotkin : -- pull_requests: +24786 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26152 ___ Python tracker ___

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2021-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was really two issues: fix doc of existing behavior; change behavior (which would be an enhancement). The first has been done; the second not. I think this should be closed and if anyone still proposes the second, open a new enhancement issue

[issue39950] Add pathlib.Path.hardlink_to()

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39950] Add pathlib.Path.hardlink_to()

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24789 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/26155 ___ Python tracker ___

[issue44144] Python window not opening

2021-05-15 Thread Chinmay Malvania
Change by Chinmay Malvania : -- assignee: -> christian.heimes components: +SSL -Unicode nosy: +christian.heimes ___ Python tracker ___

[issue44144] Python window not opening

2021-05-15 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2021-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2021-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Alexey, to repeat what I said to Thomas above: please sign a contributor agreement for your patches to be considered. https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/ -- ___

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2021-05-15 Thread Alexey Namyotkin
Alexey Namyotkin added the comment: Thanks, Terry. I signed it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29688] Add support for Path.absolute()

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch nosy: +barneygale nosy_count: 8.0 -> 9.0 pull_requests: +24787 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26153 ___ Python tracker

[issue44144] Python window not opening

2021-05-15 Thread Chinmay Malvania
Chinmay Malvania added the comment: Never mind I just had to restart my PC On Sat, May 15, 2021 at 3:28 PM Dennis Sweeney wrote: > > Dennis Sweeney added the comment: > > How are you trying to start the shell? Does "shell window" mean IDLE? What > operating system are you using? What do

[issue44144] Python window not opening

2021-05-15 Thread Chinmay Malvania
New submission from Chinmay Malvania : Python shell's window not opening and even if it is, it glitches. -- components: Unicode messages: 393723 nosy: chinmay.malvania, ezio.melotti, vstinner priority: normal severity: normal status: open title: Python window not opening versions:

[issue10513] sqlite3.InterfaceError after commit

2021-05-15 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Closing as fixed. If someone disagrees; please re-open. -- resolution: -> fixed status: pending -> closed ___ Python tracker ___

[issue39924] pathlib handles missing `os.link`, `os.symlink` and `os.readlink` inconsistently

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39950] Add pathlib.Path.hardlink_to()

2021-05-15 Thread Barney Gale
Change by Barney Gale : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-05-15 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +24779 pull_request: https://github.com/python/cpython/pull/26143 ___ Python tracker ___ ___

[issue44139] Unparenthesized tuple doc bug in what's new

2021-05-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +24781 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26145 ___ Python tracker

[issue44143] The parse crashes when raising tokenizer errors when an existing exception is set

2021-05-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 1afaaf5a2dc901377bb17f6fbe0cff7bf3b797e3 by Miss Islington (bot) in branch '3.10': bpo-44143: Fix crash in the parser when raising tokenizer errors with an exception set (GH-26144) (GH-26148)

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-05-15 Thread Ma Lin
Ma Lin added the comment: Sorry, for the (init_size > UINT32_MAX) problem, I have a better solution. Please imagine this scenario: - before the patch - in 64-bit build - use zlib.decompress() function - the exact decompressed size is known and > UINT32_MAX (e.g. 10 GiB) If set the `bufsize`

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-15 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44134] lzma: stream padding in xz files

2021-05-15 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44139] Unparenthesized tuple doc bug in what's new

2021-05-15 Thread Ned Deily
Change by Ned Deily : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44143] The parse crashes when raising tokenizer errors when an existing exception is set

2021-05-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24784 pull_request: https://github.com/python/cpython/pull/26148 ___ Python tracker

[issue44139] Unparenthesized tuple doc bug in what's new

2021-05-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 376740110ecb2440fee9e04f325131aaefeb5c47 by Miss Islington (bot) in branch '3.9': bpo-32133: Improve numbers docs (GH-26124) (GH-26147) https://github.com/python/cpython/commit/376740110ecb2440fee9e04f325131aaefeb5c47 --

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a38db84122b4f664ee30b9ffd55ce87b7f4517ac by Miss Islington (bot) in branch '3.10': bpo-32133: Improve numbers docs (GH-26124) (GH-26149) https://github.com/python/cpython/commit/a38db84122b4f664ee30b9ffd55ce87b7f4517ac --

[issue44143] The parse crashes when raising tokenizer errors when an existing exception is set

2021-05-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +24780 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26144 ___ Python tracker

[issue44143] The parse crashes when raising tokenizer errors when an existing exception is set

2021-05-15 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The parser currently crashes when raising exceptions when the error indicator set. Reproducer: import ast source = """\ [interesting foo() """ print(repr(source)) compile(source, "", "exec") We need to make sure to clean any existing exception

[issue44139] Unparenthesized tuple doc bug in what's new

2021-05-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Great idea, I have opened a PR to change it -- stage: patch review -> ___ Python tracker ___

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24783 pull_request: https://github.com/python/cpython/pull/26147 ___ Python tracker

[issue44139] Unparenthesized tuple doc bug in what's new

2021-05-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 67729a91a5fe6ad06fb5f2cc4f91ad99876e431a by Miss Islington (bot) in branch '3.10': bpo-44139: Use a more descriptive syntax error comprehension case in the What's New for 3.10 (GH-26145) (GH-26146)

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +24785 pull_request: https://github.com/python/cpython/pull/26149 ___ Python tracker ___

[issue44142] ast.unparse: visually better code generation

2021-05-15 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : This issue is for tracking possible places where we could generate better code on ast.unparse (better as in more closely to what people are actually writing than our naive implementation). Examples; >>> import ast >>> ast.unparse(ast.parse('a, b, c =

[issue44139] Unparenthesized tuple doc bug in what's new

2021-05-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24782 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26146 ___ Python tracker

[issue44081] ast.unparse: dont use redundant space separator for lambdas with no parameters

2021-05-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue38768] [feature request] Add lldb equivalent to Tools/gdb

2021-05-15 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44132] Local import conflict with system import

2021-05-15 Thread Ned Deily
Ned Deily added the comment: Python is behaving as documented here. The problem is that you have a package named 'xml' which conflicts with the package of the same name in the standard library (https://docs.python.org/3/library/xml.html) which may cause conflicts for other packages

[issue32133] documentation: numbers module nitpick

2021-05-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44143] The parse crashes when raising tokenizer errors when an existing exception is set

2021-05-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44136] Remove pathlib flavours

2021-05-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44142] ast.unparse: visually better code generation

2021-05-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +24790 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26156 ___ Python tracker ___

[issue44141] Getting error while importing ssl "import _ssl ImportError: DLL load failed: The specified procedure could not be found."

2021-05-15 Thread Tarnum
New submission from Tarnum : Hello! I'm using specifically crafted Python 3.7.1 for NT 5.2 x86 (Server 2003 R2) and cannot upgrade Python to later versions. I always building OpenSSL myself using compatible version of MSYS2 with perl 5.22. Compiled DLLs of OpenSSL 1.1.1k works fine for me