[issue22121] Start IDLE from icon in a better place.

2021-03-27 Thread Eryk Sun
Eryk Sun added the comment: > if sys.stdout is None and no file in sys.argv With the app distribution from the Microsoft Store, "idle3.x.exe" is a GUI executable that runs idlelib. There isn't a console version. Also, GUI scripts are usually run with the pyw.exe launcher or pythonw.exe,

[issue25643] Python tokenizer rewriting

2021-03-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 7.0 -> 8.0 pull_requests: +23799 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25050 ___ Python tracker

[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg359981 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37801] Compilation on MINGW64 fails (CODESET,wcstok,...)

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib) keywords: +3.10regression, 3.6regression, 3.7regression, 3.8regression, 3.9regression -patch stage: test needed -> needs patch type: crash -> behavior versions: +Python 3.10 -Python 3.7 ___ Python

[issue37756] Error 0x80070643 when installing

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35440] Setup failed 0x80072f7d - Unspecified error

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33406] [ctypes] increase the refcount of a callback function

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34816] raise AttributeError if loading fails in ctypes.LibraryLoader.__getattr__

2021-03-27 Thread Eryk Sun
Eryk Sun added the comment: > __getattr__ method of LibraryLoader catches the OSError and > raises an AttributeError Yes. It seems no one was keen to work on this. I think it's relatively easy, so I'll add that flag in case someone is looking for an easy issue. -- keywords: +easy

[issue35026] Winreg's documentation lacks mentioning required permission at some points

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue38948] [Windows] require an existing directory and suport junctions in ntpath.ismount()

2021-03-27 Thread Eryk Sun
Eryk Sun added the comment: Here's a concrete implementation of the above discussion. _is_windows = (sys.platform == 'win32') def ismount(path): """Test whether a path is a mount point""" path = os.fspath(path) if isinstance(path, bytes): sep =

[issue32146] multiprocessing freeze_support needed outside win32

2021-03-27 Thread Oliver Newman
Change by Oliver Newman : -- nosy: +onew ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43614] Search is not beginner friendly

2021-03-27 Thread Anthony Flury
Anthony Flury added the comment: Is PR 25045 the correct Pull request - this Issue is a documentation change - the linked PR is related to Issue 43433 (a change to xmlrpc.client ?) -- ___ Python tracker

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 138e039ff9e5330709643b1bfe623eeac8fdc681 by Miss Islington (bot) in branch '3.9': bpo-43644: Add docs for importlib.resources.as_file. (GH-25048) https://github.com/python/cpython/commit/138e039ff9e5330709643b1bfe623eeac8fdc681 --

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +23798 pull_request: https://github.com/python/cpython/pull/25049 ___ Python tracker

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset af50c84643ce21cfbdfdabbdfae6bd5e1368c542 by Jason R. Coombs in branch 'master': bpo-43644: Add docs for importlib.resources.as_file. (#25048) https://github.com/python/cpython/commit/af50c84643ce21cfbdfdabbdfae6bd5e1368c542 --

[issue43614] Search is not beginner friendly

2021-03-27 Thread Chris Angelico
Change by Chris Angelico : -- keywords: +patch nosy: +Rosuav nosy_count: 5.0 -> 6.0 pull_requests: +23797 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25045 ___ Python tracker

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +23796 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25048 ___ Python tracker ___

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco components: +Documentation type: -> enhancement versions: +Python 3.10, Python 3.9 ___ Python tracker ___

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
New submission from Jason R. Coombs : As reported in https://github.com/python/importlib_resources/issues/210, the `as_file` function of importlib.resources is undocumented in CPython. -- messages: 389624 nosy: jaraco priority: normal severity: normal status: open title:

[issue43562] test_ssl.NetworkedTests.test_timeout_connect_ex fails if network is unreachable

2021-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +23795 pull_request: https://github.com/python/cpython/pull/25047 ___ Python tracker ___

[issue43562] test_ssl.NetworkedTests.test_timeout_connect_ex fails if network is unreachable

2021-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +23794 pull_request: https://github.com/python/cpython/pull/25046 ___ Python tracker ___

[issue43562] test_ssl.NetworkedTests.test_timeout_connect_ex fails if network is unreachable

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 29c451c6989c3c94fa0a9facf187c24f3cbf2420 by Carl Meyer in branch 'master': bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) https://github.com/python/cpython/commit/29c451c6989c3c94fa0a9facf187c24f3cbf2420 -- nosy:

[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

2021-03-27 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the bug report! I ran into the issue a couple of weeks ago on one machine that had autoconf but not the archive package installed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10,

[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-27 Thread Chris Angelico
Chris Angelico added the comment: Can confirm. This changed in bpo-38038 and the fix isn't too difficult. Adding 3.10 in case it's decided that this shouldn't be patched onto 3.9. -- versions: +Python 3.10 ___ Python tracker

[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

2021-03-27 Thread Christian Heimes
Christian Heimes added the comment: New changeset e516290976626cf8535b88a14b1b34e37f88a78a by Christian Heimes in branch '3.8': [3.8] bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) (GH-25035)

[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

2021-03-27 Thread Christian Heimes
Christian Heimes added the comment: New changeset 064bc07f241dceec2fc577cbf5c31fa6d63fe320 by Christian Heimes in branch '3.9': [3.9] bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) (GH-25034)

[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-27 Thread Chris Angelico
Change by Chris Angelico : -- keywords: +patch nosy: +Rosuav nosy_count: 3.0 -> 4.0 pull_requests: +23793 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25045 ___ Python tracker

[issue38038] Remove urllib.parse._splittype from xmlrpc.client

2021-03-27 Thread Christian Heimes
Christian Heimes added the comment: Please open a new bug and include a reference to this issue. -- nosy: +christian.heimes ___ Python tracker ___

[issue38038] Remove urllib.parse._splittype from xmlrpc.client

2021-03-27 Thread florian-rathgeber
florian-rathgeber added the comment: This change caused an (I presume unintended) behavior change that breaks some xmlrpc users: previously, the XLMRPC handler was everything after the host part of the URI

[issue1634034] Show "expected" token on syntax error

2021-03-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as per above -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43643] importlib.readers.MultiplexedPath.name is not a property

2021-03-27 Thread Andreas Poehlmann
New submission from Andreas Poehlmann : Hello, I was using the `importlib_resources` backport and encountered this issue, which is also present in cpython: `importlib.readers.MultiplexedPath.name` is not a property as required by `importlib.abc.Traversable` I can prepare a pull request

[issue22790] some class attributes missing from dir(Class)

2021-03-27 Thread Siddharth Chabra
Change by Siddharth Chabra : -- nosy: +siddharthchabra versions: -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___

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

2021-03-27 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23792 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25044 ___ Python tracker ___

[issue37339] Document that os.path.ismount() returns true for nested btrfs subvolumes

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: os.path.ismount returns true on nested btrfs subvolumes -> Document that os.path.ismount() returns true for nested btrfs subvolumes type: behavior -> enhancement versions: +Python

[issue42041] venv subprocess call to python resolves to wrong interpreter

2021-03-27 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-03-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue39231] Mistaken notion in tutorial

2021-03-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> behavior versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

[issue39231] Mistaken notion in tutorial

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 7990072999b7e9b4ef6b1f6bb376d441a5a41d74 by Miss Islington (bot) in branch '3.9': bpo-39231: correct tutorial annotations section (GH-25029) https://github.com/python/cpython/commit/7990072999b7e9b4ef6b1f6bb376d441a5a41d74 --

[issue39231] Mistaken notion in tutorial

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 6fcebbb5a8cea25717804f5be9b6878104748ea5 by Miss Islington (bot) in branch '3.8': bpo-39231: correct tutorial annotations section (GH-25029) https://github.com/python/cpython/commit/6fcebbb5a8cea25717804f5be9b6878104748ea5 --

[issue39231] Mistaken notion in tutorial

2021-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +23791 pull_request: https://github.com/python/cpython/pull/25043 ___ Python tracker ___

[issue39231] Mistaken notion in tutorial

2021-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a53e9a7cf5912a44c5143e353912e44cfcfca7dc by Irit Katriel in branch 'master': bpo-39231: correct tutorial annotations section (GH-25029) https://github.com/python/cpython/commit/a53e9a7cf5912a44c5143e353912e44cfcfca7dc --

[issue39231] Mistaken notion in tutorial

2021-03-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23790 pull_request: https://github.com/python/cpython/pull/25042 ___ Python tracker

[issue37773] ValueError: I/O operation on closed file. in ZipFile destructor

2021-03-27 Thread Jörn Heissler
Jörn Heissler added the comment: Thanks Serhiy for the explanation, it's making sense now. Guess whatever I did back then (no idea what I was working on) was basically a mistake; I should have closed my ZipFile properly, e.g. by using context managers. So maybe it's not really a cpython bug.

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset bacefbf41461ab703b8d561f0e3d766427eab367 by Christian Heimes in branch 'master': bpo-43466: Unsupported static build hack (GH-25002) https://github.com/python/cpython/commit/bacefbf41461ab703b8d561f0e3d766427eab367 -- nosy:

[issue43641] Update `ssl.PROTOCOL_TLSv1_2` docs since it is not the newest TLS version

2021-03-27 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +23789 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25041 ___ Python tracker ___

[issue43642] ctypes.util.find_library can't find the lib on Alpine

2021-03-27 Thread An1c0de
New submission from An1c0de : Hi! ctypes.util.find_library can't find the lib on Alpine. I think this is because the logic is not cover the digital suffixes. Docker example: ``` docker run --rm -it python:3.9-alpine sh apk add libuuid build-base ls /lib/libuuid* # /lib/libuuid.so.1 #

[issue43641] Update `ssl.PROTOCOL_TLSv1_2` docs since it is not the newest TLS version

2021-03-27 Thread Illia Volochii
New submission from Illia Volochii : Docs say that TLS 1.2 is the most modern version, and probably the best choice for maximum protection, but TLS 1.3 exists. https://docs.python.org/3.10/library/ssl.html#ssl.PROTOCOL_TLSv1_2 -- assignee: docs@python components: Documentation

[issue43638] MacOS os.statvfs() has rollover for >4TB disks at each 4TB (32bit counter overflow?)

2021-03-27 Thread Sander
Sander added the comment: Correction on typo in original post / to be clear: >From the "df -m /Volumes/Frank/", Available is 19435615 in unity of 1MB >blocks, so 19435615 MB. Which is 18.5 TB. All correctly reported by "df -m". >But not by os.statvfs() --

[issue43640] Add warnings to ssl.PROTOCOL_TLSv1 and ssl.PROTOCOL_TLSv1_1 docs

2021-03-27 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +23788 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25040 ___ Python tracker ___

[issue43640] Add warnings to ssl.PROTOCOL_TLSv1 and ssl.PROTOCOL_TLSv1_1 docs

2021-03-27 Thread Illia Volochii
New submission from Illia Volochii : TLS versions 1.0 and 1.1 have recently been deprecated. [1] ssl.PROTOCOL_SSLv2 and ssl.PROTOCOL_SSLv3 have such warnings "SSL version 2 is insecure. Its use is highly discouraged." [2] We have to add such warnings to ssl.PROTOCOL_TLSv1 and

[issue37773] ValueError: I/O operation on closed file. in ZipFile destructor

2021-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That's what happened. Function foo creates a reference loop. It has reference to the module dict, and the dict has reference to the function. The dict has also references to BytesIO and ZipFile objects. At shutdown stage the garbage collector is called.

[issue43605] Eval/exec and comprehension scopes unclear in documentation

2021-03-27 Thread Cong Ma
Change by Cong Ma : -- keywords: +patch pull_requests: +23787 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25039 ___ Python tracker

[issue43637] winreg: SetValueEx leaks memory if PySys_Audit fails

2021-03-27 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +23786 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25038 ___ Python tracker

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset c84e769c2b4108e1218e09652cb3bce34c541f8a by Miss Islington (bot) in branch '3.9': bpo-39616: clarify SSLContext.check_hostname effect (GH-18484) https://github.com/python/cpython/commit/c84e769c2b4108e1218e09652cb3bce34c541f8a --

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 9de6451558c38537b2335d6e04e3bf8743c30576 by Miss Islington (bot) in branch '3.8': bpo-39616: clarify SSLContext.check_hostname effect (GH-18484) https://github.com/python/cpython/commit/9de6451558c38537b2335d6e04e3bf8743c30576 --

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2021-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +23785 pull_request: https://github.com/python/cpython/pull/25037 ___ Python tracker ___

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2021-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +23784 pull_request: https://github.com/python/cpython/pull/25036 ___ Python tracker ___

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 9798cef92b882cd82a338d3368eaf3c4a32f5c2d by Ville Skyttä in branch 'master': bpo-39616: clarify SSLContext.check_hostname effect (GH-18484) https://github.com/python/cpython/commit/9798cef92b882cd82a338d3368eaf3c4a32f5c2d -- nosy:

[issue40645] Use OpenSSL's HMAC API

2021-03-27 Thread miss-islington
miss-islington added the comment: New changeset 933dfd7504e521a27fd8b94d02b79f9ed08f4631 by Christian Heimes in branch 'master': bpo-40645: use C implementation of HMAC (GH-24920) https://github.com/python/cpython/commit/933dfd7504e521a27fd8b94d02b79f9ed08f4631 --

[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

2021-03-27 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23783 pull_request: https://github.com/python/cpython/pull/25035 ___ Python tracker ___

[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

2021-03-27 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23782 pull_request: https://github.com/python/cpython/pull/25034 ___ Python tracker ___

[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

2021-03-27 Thread Christian Heimes
Christian Heimes added the comment: New changeset 5d6e8c1c1a5f667cdce99cb3c563ac922198678d by Christian Heimes in branch 'master': bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) https://github.com/python/cpython/commit/5d6e8c1c1a5f667cdce99cb3c563ac922198678d

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-03-27 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +23781 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25033 ___ Python tracker ___

[issue43605] Eval/exec and comprehension scopes unclear in documentation

2021-03-27 Thread Cong Ma
Cong Ma added the comment: Some more context: Issue 37646. The demo in that one was "eval inside list-comprehension-scope", while this one is the other way around. Perhaps another example may better illustrate the interplay between eval and the execution environment: ``` def f(): x = 1

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-03-27 Thread Géry
New submission from Géry : Currently, the `object.__setattr__` and `type.__setattr__` methods raise an `AttributeError` during attribute *update* on an instance if its type has an attribute which is a *data* descriptor without a `__set__` method. Likewise, the `object.__delattr__` and

[issue43605] Eval/exec and comprehension scopes unclear in documentation

2021-03-27 Thread Cong Ma
Cong Ma added the comment: > sum(get(i) for i in range(len(l))) This expression inside the body of ``func()`` references the name "get" and "l" (ell), both are local to the scope introduced by ``func()``. More specifically, these two names are referenced in the unnamed inner scope

[issue43638] MacOS os.statvfs() has rollover for >4TB disks at each 4TB (32bit counter overflow?)

2021-03-27 Thread Safihre
Change by Safihre : -- nosy: +Safihre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43638] MacOS os.statvfs() has rollover for >4TB disks at each 4TB (32bit counter overflow?)

2021-03-27 Thread Sander
New submission from Sander : MacOS BigSur (and older), python 3.9.2 (and older) For disks >4TB, os.statvfs() shows a wrong value for available space: too low, and always rollover at each 4TB. As 4TB = 2^42, hypothesis: rollover in 32bit counter (with 10bit blocksize) Example: "df -m" does

[issue43605] Eval/exec and comprehension scopes unclear in documentation

2021-03-27 Thread Bruno Loff
Bruno Loff added the comment: Hmm yes, some more words in the documentation might help. Does anyone understand why it happens, though? Specifically, note that sum(get(i) for i in range(len(l))) or eval("get(0) + get(1) + get(2) + get(3)") or eval("sum(get(i) for i in range(len(l)))",

[issue37773] ValueError: I/O operation on closed file. in ZipFile destructor

2021-03-27 Thread Jörn Heissler
Jörn Heissler added the comment: Still reproducible in cpython 3.10.0a3 (debian unstable) and 3.10.0a6 (pyenv). -- versions: +Python 3.10 ___ Python tracker ___

[issue43605] Eval/exec and comprehension scopes unclear in documentation

2021-03-27 Thread Cong Ma
Cong Ma added the comment: I'm preparing an update to the documentation of eval/exec. There are several issues, but chiefly I'll link to the appropriate sections in the Language Reference, and clean up some other inaccuracies. When it's ready I'll submit a PR for core devs to review.

[issue43605] Eval/exec and comprehension scopes unclear in documentation

2021-03-27 Thread Cong Ma
Cong Ma added the comment: > I think it is *very* reasonable to expect that calling eval() on a string > should have the exact same effect as if the code that is inside the eval had > been written as part of the source code. I don't think Python's execution model is defined this way. The

[issue43637] winreg: SetValueEx leaks memory if PySys_Audit fails

2021-03-27 Thread Ondrej Baranovič
New submission from Ondrej Baranovič : The function `winreg_SetValueEx_impl` in `winreg.c`: 1) Allocates memory by calling `Py2Reg`, 2) calls `PySys_Audit` and immediately returns if it indicates an error, 3) calls `RegSetValueExW`, 4) frees memory allocated in (1) and returns. The if-block in