[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: Yes, it's true, it's so naive method, Contextvars! may be inside the Future Object? -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-11-09 Thread junyixie
junyixie added the comment: About PEP How is the progress? Where can I track it? Is there any relevant plan? thanks -- ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread Eryk Sun
Eryk Sun added the comment: Also, I suggest using CREATEPROCESS_MANIFEST_RESOURCE_ID (1) and ISOLATIONAWARE_MANIFEST_RESOURCE_ID (2) instead of hard-coded resource IDs. -- ___ Python tracker

[issue30533] missing feature in inspect module: getmembers_static

2021-11-09 Thread Itamar Ostricher
Itamar Ostricher added the comment: interested in this too - came here to see if I can implement, but found that a patch is already available (GH-20911), and applies cleanly on latest main branch (see my PR comments) would be great if it gets merged! -- nosy: +itamaro

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-09 Thread Steve Canny
New submission from Steve Canny : On CPython 3.10.0 on Windows but not MacOS, AttributeError is raised when referencing `abc` on collections (instead of importing `collections.abc`). >>> import collections >>> collections.abc.Container AttributeError: module 'collections' has no attribute

[issue45758] Crash on Py_DecRef'ing builtin object from previous run

2021-11-09 Thread Hai Shi
Hai Shi added the comment: Hi, Victor Milovanov. The memory allocated by interpreter will be freed after calling Py_Finalize(). -- nosy: +pablogsal, shihai1991 ___ Python tracker

[issue44532] multi subinterpreters use _PyStructSequence_InitType failed.

2021-11-09 Thread junyixie
junyixie added the comment: Include/internal/pycore_structseq.h: 10 11 12: PyAPI_FUNC(int) _PyStructSequence_InitType( 13 PyTypeObject *type, 14 PyStructSequence_Desc *desc, Modules/_cursesmodule.c: 4794 /* ncurses_version */ 4795 if

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-09 Thread Thomas Stolarski
Change by Thomas Stolarski : -- keywords: +patch pull_requests: +27763 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29512 ___ Python tracker

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread Eryk Sun
Eryk Sun added the comment: Steve, instead of manually defining RT_MANIFEST, try including "winresrc.h" in the resource definition files. This SDK header includes "winuser.rh" (note the ".rh" extension), which, among other things, includes the following RC_INVOKED definitions from

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: In summary; == Current Problem: -- ThreadPoolExecutor handles all threads-related activities so the user needs to just submit tasks and set max_workers and other Executor settings if necessary. If ThreadPoolExecutor

[issue45761] recursive ProcessPoolExecutor invoke unable to return result

2021-11-09 Thread Evan Greenup
Change by Evan Greenup : Added file: https://bugs.python.org/file50432/hello.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45761] recursive ProcessPoolExecutor invoke unable to return result

2021-11-09 Thread Evan Greenup
New submission from Evan Greenup : Read the hello.py in attachment. This simple shallow recursion will never return result. -- components: Library (Lib) files: hello.py messages: 406003 nosy: evan0greenup priority: normal severity: normal status: open title: recursive

[issue45743] Cleanup and simplify setup.py

2021-11-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 8fefaad242f45b3bd97e000a00f2aac16d935315 by Christian Heimes in branch 'main': bpo-45743: -Wl,-search_paths_first is no longer needed (GH-29464) https://github.com/python/cpython/commit/8fefaad242f45b3bd97e000a00f2aac16d935315 --

[issue45743] Cleanup and simplify setup.py

2021-11-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6a1cc8bf8a0d88af9c7891c6577508ae9f70e3ef by Christian Heimes in branch 'main': bpo-45743: Remove workaround for zlib CVE from 2002 (GH-29457) https://github.com/python/cpython/commit/6a1cc8bf8a0d88af9c7891c6577508ae9f70e3ef --

[issue45762] Missing `list` symbols in the object inventory

2021-11-09 Thread Matteo Bertucci
New submission from Matteo Bertucci : Sphinx generates a quite useful inventory file, listing all the different symbols available inside the documentation. You can find the docs.python.org inventory over at https://docs.python.org/objects.inv. The syntax of this file can be found here

[issue45763] Detect compression libraries in configure

2021-11-09 Thread Christian Heimes
New submission from Christian Heimes : Detect the presence of header files and development libraries for zlib, bz2, and lzma in configure.ac. Also see bpo-45747 -- components: Build messages: 406007 nosy: christian.heimes priority: normal severity: normal status: open title: Detect

[issue45763] Detect compression libraries in configure

2021-11-09 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27734 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29483 ___ Python tracker

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2021-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45759] Improve error messages for non-matching `elif`/`else` statements

2021-11-09 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23041] csv needs more quoting rules

2021-11-09 Thread Miha Šetina
Miha Šetina added the comment: I would say that it should follow a rule: both cases values of None are output as an empty field so empty filed should map to None with both QUOTE_NOTNULL and QUOTE_STRINGS that would make: ["", None, 1, "a"] for QUOTE_STRINGS in effect. This would also make

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue: test_winconsoleio fails on the "AMD64 Windows11 3.x" buildbot, whereas the purpose of this issue was to get test_winconsoleio pass on Windows 11. First AMD64 Windows11 3.x failure:

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread Eryk Sun
Eryk Sun added the comment: The embedded manifest in python[_d].exe is missing, so the process is running with Windows 8 compatibility mode (i.e. 6.2.9200), and thus the check for Windows 11+ (10.0.22000+) is false. It's disappointing that compatibility mode doesn't restore the old DOS

[issue45764] Parse error improvement forgetting ( after def

2021-11-09 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : Something I see beginners make occasionally when defining functions without arguments is this: def f: ... Right now it just gives an "invalid syntax", would be nice to get an "expected '('". I will try to give this a go! Should be a

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-09 Thread Ken Jin
Change by Ken Jin : -- nosy: -kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread Eryk Sun
Eryk Sun added the comment: It would also work to add RT_MANIFEST=24 to the ResourceCompile PreprocessorDefinitions in PCbuild\pyproject.props. Though to me, adding the definition there is obscure compared to including a private header, such as "resourcetype.h". --

[issue23041] csv needs more quoting rules

2021-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The quoting style affects not only the CSV formatting, but also the CSV parsing. How QUOTE_NOTNULL and QUOTE_STRINGS will affect parsing? -- ___ Python tracker

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-11-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f4c03484da59049eb62a9bfb963e2267d187 by Pablo Galindo Salgado in branch 'main': bpo-45637: Remove broken fallback in gdb helpers to obtain frame variable (GH-29257)

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-09 Thread Martin
Martin added the comment: I improved the example in traceback.rst to illustrate how format_locals works. -- ___ Python tracker ___

[issue45759] Improve error messages for non-matching `elif`/`else` statements

2021-11-09 Thread Alex Waygood
Change by Alex Waygood : -- title: non-matching `elif`/`else` statements with uninformative errors -> Improve error messages for non-matching `elif`/`else` statements ___ Python tracker

[issue45759] non-matching `elif`/`else` statements with uninformative errors

2021-11-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-09 Thread Martin
Martin added the comment: Just to avoid misunderstandings: My pull request is not at all about silencing exceptions. It is about customizing the output of the traceback module. (Just like the introduction of capture_locals previously: #22936) (-X capture_locals, on the other hand, is a

[issue45764] Parse error improvement forgetting ( after def

2021-11-09 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- keywords: +patch pull_requests: +27735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29484 ___ Python tracker

[issue23041] csv needs more quoting rules

2021-11-09 Thread Skip Montanaro
Skip Montanaro added the comment: Further question... All the discussion has been on the writer side of the csv module. Is there any reason that using QUOTE_STRINGS or QUOTE_NOTNULL should have an effect when reading? For example, should this line on input "",,1,'a' produce this list ["",

[issue45723] Improve and simplify configure.ac checks

2021-11-09 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27736 pull_request: https://github.com/python/cpython/pull/29485 ___ Python tracker ___

[issue45723] Improve and simplify configure.ac checks

2021-11-09 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27737 pull_request: https://github.com/python/cpython/pull/29486 ___ Python tracker ___

[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

2021-11-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > > What happens if set SQLITE_LIMIT_SQL_LENGTH to 0 [...] In this case, the limit is actually zero: >>> cx.setlimit(sqlite3.SQLITE_LIMIT_SQL_LENGTH, 0) 1024 >>> cx.execute("select 1") Traceback (most recent call last): File "", line

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27739 pull_request: https://github.com/python/cpython/pull/29488 ___ Python tracker ___

[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

2021-11-09 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27740 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29489 ___ Python tracker

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-09 Thread Raymond Hettinger
New submission from Raymond Hettinger : Signature: def linear_regression(x, y, /, *, proportional=False): Additional docstring with example: If *proportional* is true, the independent variable *x* and the dependent variable *y* are assumed to be directly proportional. The

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread Steve Dower
Steve Dower added the comment: > bpo-45220 removed the winuser.h include from the PC\*.rc files, so the > RT_MANIFEST resource type macro isn't defined. It needs to be defined in the > file or a common header. For example: > > #define RT_MANIFEST 24 > 1 RT_MANIFEST

[issue45765] importlib.metadata fails to find distributions in empty path

2021-11-09 Thread Jason R. Coombs
New submission from Jason R. Coombs : Reported in https://github.com/python/importlib_metadata/issues/353, importlib.metadata fails to find distributions in the path "". A fix was applied to importlib_metadata 2.1.2 and 4.8.2. Let's apply that fix and backport it to supported Pythons.

[issue45765] importlib.metadata fails to find distributions in empty path

2021-11-09 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +27738 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29487 ___ Python tracker ___

[issue45764] Parse error improvement forgetting ( after def

2021-11-09 Thread miss-islington
miss-islington added the comment: New changeset 2819e98d1048238bf94dc2ba88ae2455d01861bc by Carl Friedrich Bolz-Tereick in branch 'main': bpo-45764: improve error message when missing '(' after 'def' (GH-29484) https://github.com/python/cpython/commit/2819e98d1048238bf94dc2ba88ae2455d01861bc

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-11-09 Thread swgmma
swgmma added the comment: Just squashed all the commits. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45723] Improve and simplify configure.ac checks

2021-11-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: AC_CHECK_TYPE is obsolete and it's use is discouraged. There are some gotchas we need to check before switching to AC_CHECK_TYPES. See: - https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Obsolete-Macros.html -

[issue45723] Improve and simplify configure.ac checks

2021-11-09 Thread miss-islington
miss-islington added the comment: New changeset 185533639d6eddd42a28f9e3517067bd877e34c5 by Erlend Egeberg Aasland in branch 'main': bpo-45723: Remove obsolete AC_EXEEXT from configure.ac (GH-29486) https://github.com/python/cpython/commit/185533639d6eddd42a28f9e3517067bd877e34c5

[issue45763] Detect compression libraries in configure

2021-11-09 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread STINNER Victor
STINNER Victor added the comment: > #define RT_MANIFEST 24 If possible, add a comment with a reference to this issue (bpo-45354) to help future readers ;-) -- ___ Python tracker

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-09 Thread STINNER Victor
STINNER Victor added the comment: I wrote a different fix: PR 29488. Can someone please check if it fix the issue with Xcode? -- ___ Python tracker ___

[issue45765] importlib.metadata fails to find distributions in empty path

2021-11-09 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +27741 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29490 ___ Python tracker

[issue45763] Detect compression libraries in configure

2021-11-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 5b7c7cb104163a178e9d70cb3c80cbfa6af8fbfc by Christian Heimes in branch 'main': bpo-45763: Detect compression build deps in configure (GH-29483) https://github.com/python/cpython/commit/5b7c7cb104163a178e9d70cb3c80cbfa6af8fbfc --

[issue45767] Fix types for dev_t processing in posix module

2021-11-09 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : So, I was investigating a test failure of python 3.11 and 3.10 on FreeBSD (but it likely applies to all python versions): == FAIL: test_makedev (test.test_posix.PosixTester)

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-09 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +27745 pull_request: https://github.com/python/cpython/pull/29495 ___ Python tracker ___

[issue45769] SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-09 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo(): return 42 coro = foo()

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset 340ecafdf3bfb1377a1b8584addbb8e7bb423459 by Steve Dower in branch '3.10': bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477) https://github.com/python/cpython/commit/340ecafdf3bfb1377a1b8584addbb8e7bb423459 --

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27746 pull_request: https://github.com/python/cpython/pull/29496 ___ Python tracker ___

[issue45768] SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-09 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo(): return 42 coro = foo()

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry Rahul: I'm not the right person to help you push this forward. I'm sympathetic to the problem: I've encountered similar issues in "Real Code", where we needed to associate log outputs generated by worker pool threads with the actual tasks that

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset bcc4e46832010469bb35a97c1d1e962a82ee7fd9 by Steve Dower in branch 'main': bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477) https://github.com/python/cpython/commit/bcc4e46832010469bb35a97c1d1e962a82ee7fd9 --

[issue45767] Fix types for dev_t processing in posix module

2021-11-09 Thread Dmitry Marakasov
Change by Dmitry Marakasov : -- pull_requests: +27743 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29494 ___ Python tracker ___

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-09 Thread Brandt Bucher
Brandt Bucher added the comment: I don't think that it does, since oparg gets totally reassigned each time we load a new instruction. EXTENDED_ARG actually needs to hack around this by advancing the instruction itself, updating oparg, and jumping straight into the next opcode. --

[issue45770] SyntaxError: 'await' outside function" in "asyncio-task.html#waiting-primitives" code snippets

2021-11-09 Thread Jose Ville
New submission from Jose Ville : https://docs.python.org/3/library/asyncio-task.html#asyncio.wait has the following two code snippets both of which fail with ""SyntaxError: 'await' outside function" when I run them in Python 3.9.7 Snippet 1: ``` async def foo(): return 42 coro = foo()

[issue45771] urllib.request.urlopen can leak socket.timeout to callers

2021-11-09 Thread Michael Thorpe
New submission from Michael Thorpe : urllib.request.urlopen can raise socket.timeout, outside of the documented contract, if reading response data times out. -- components: Library (Lib) messages: 406038 nosy: thorpe-dev priority: normal severity: normal status: open title:

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27742 pull_request: https://github.com/python/cpython/pull/29493 ___ Python tracker ___

[issue42411] respect cgroups limits when trying to allocate memory

2021-11-09 Thread Caleb Collins-Parks
Caleb Collins-Parks added the comment: @christian.heimes following up on this - we have been having frequent memory issues with Python 3.7 in Kubernetes. It could just be the code, but if it does turn out this is a bug then fixing it could be very beneficial. -- nosy: +caleb2

[issue45701] Add tuple tests to `functools.lru_cache`

2021-11-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger nosy_count: 1.0 -> 2.0 pull_requests: +27747 pull_request: https://github.com/python/cpython/pull/29498 ___ Python tracker

[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

2021-11-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Also, SQLITE_LIMIT_LENGTH and SQLITE_LIMIT_SQL_LENGTH is inclusive in SQLite. We should treat them likewise. -- ___ Python tracker ___

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread Steve Dower
Steve Dower added the comment: FYI, adding a fix for this on issue45220 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-09 Thread Irit Katriel
Irit Katriel added the comment: New changeset cb414cf0e207668300c4fe3f310c0bd249153273 by Irit Katriel in branch 'main': bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480)

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +27752 pull_request: https://github.com/python/cpython/pull/29502 ___ Python tracker

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +27754 pull_request: https://github.com/python/cpython/pull/29504 ___ Python tracker ___

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-09 Thread Irit Katriel
Irit Katriel added the comment: The 3.9 backport had a conflict, but I think it's not worth worrying about because this scenario only showed up in 3.10. -- versions: -Python 3.9 ___ Python tracker

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +27753 pull_request: https://github.com/python/cpython/pull/29503 ___ Python tracker ___

[issue45771] urllib.request.urlopen can leak socket.timeout to callers

2021-11-09 Thread Michael Thorpe
Change by Michael Thorpe : -- keywords: +patch pull_requests: +27748 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29499 ___ Python tracker ___

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-09 Thread Joe Wells
Joe Wells added the comment: Some quick comments on Martin's pull request. 1. The changes are sufficient to let the user make things work the way it is requested that they work and anyone who does not start using the new format_locals parameter will get the old behavior. 2. A side comment:

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27750 pull_request: https://github.com/python/cpython/pull/29501 ___ Python tracker ___

[issue45772] socket.socket should be a class instead of a function

2021-11-09 Thread Oleg Iarygin
New submission from Oleg Iarygin : Found a twice stale bpo-less but useful pull request 23960, so publish it here: > Currently socket.socket is documented as a function, but it is really a class (and thus has function-like usage to construct an object). This correction would ensure that Python

[issue45773] Compiler hangs during jump elimination

2021-11-09 Thread Brandt Bucher
New submission from Brandt Bucher : The following code hangs during compilation on 3.11 and 3.10: >>> while True or spam: pass Our peepholer gets stuck in a loop, repeatedly "optimizing" instruction 4 (POP_JUMP_IF_TRUE -> JUMP_ABSOLUTE): 1 0 JUMP_ABSOLUTE0 (to 0)

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset a56fbad85ea655631bce68d4c0f47f1a8b500abd by Steve Dower in branch 'main': bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) https://github.com/python/cpython/commit/a56fbad85ea655631bce68d4c0f47f1a8b500abd

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset 4d1cdd7006def053c815c354bd6f266b4850bd97 by Steve Dower in branch '3.9': bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477) https://github.com/python/cpython/commit/4d1cdd7006def053c815c354bd6f266b4850bd97 --

[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

2021-11-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I believe it is best to go with alternative 1. The error strings produced by SQLite may change from release to release, so for example a buildbot update may suddenly break the CI. -- ___ Python tracker

[issue45723] Improve and simplify configure.ac checks

2021-11-09 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27749 pull_request: https://github.com/python/cpython/pull/29500 ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-09 Thread Gaige Paulsen
Gaige Paulsen added the comment: I'll try to check that in the next day or two. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45767] Fix types for dev_t processing in posix module

2021-11-09 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: In case you're curious, here are some st_dev values which are encountered on my FreeBSD: - 0xac2308de99d1f699 - ZFS - 0x7100ff00 - devfs - 0x8700ff01 - tmpfs - 0x2900ff4e - nullfs I suspect Linux uses smaller numbers which do not cause overflows so

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread miss-islington
miss-islington added the comment: New changeset d29f591dd6b1dcd4f36b5b49761cf8225be690bd by Miss Islington (bot) in branch '3.10': bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501)

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-09 Thread dgw
dgw added the comment: Can confirm that this patch DOES cause backward compatibility issues, as paul.j3's gut feeling said it could. One of my projects, testing against 3.6-3.9, now fails its test suite on Python 3.9.8, which includes this change. Arguments passed to a subparser are indeed

[issue45747] Detect dbm and gdbm dependencies in configure.ac

2021-11-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: AC_SEARCH_LIBS() will search libc before checking external libraries, FWIW. -- nosy: +erlendaasland ___ Python tracker ___

[issue45723] Improve and simplify configure.ac checks

2021-11-09 Thread miss-islington
miss-islington added the comment: New changeset 49171aa91ab78c2608a26e5a75cdceab3bad6176 by Erlend Egeberg Aasland in branch 'main': bpo-45723: Remove dead code for obsolete `--with-dyld` option (GH-29500) https://github.com/python/cpython/commit/49171aa91ab78c2608a26e5a75cdceab3bad6176

[issue45773] Compiler hangs during jump elimination

2021-11-09 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +27756 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29505 ___ Python tracker ___

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

2021-11-09 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: -brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-11-09 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: -27755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-09 Thread RhinosF1
Change by RhinosF1 : -- nosy: +RhinosF1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45774] Detect SQLite in configure.ac

2021-11-09 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : "Autoconfiscate" SQLite detection. Plan: - Detect header/library using AC_CHECK_HEADERS/AC_CHECK_LIB - Check required version using AC_COMPILE_IFELSE - Use AC_CHECK_LIB to check if sqlite3_load_extension is present, and if the result harmonises with

[issue45757] compiler emits EXTENDED_ARG + NOP sequence in 3.10

2021-11-09 Thread Irit Katriel
Irit Katriel added the comment: That sounds like a good idea. Please go ahead. -- ___ Python tracker ___ ___ Python-bugs-list

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

2021-11-09 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 3.0 -> 4.0 pull_requests: +27755 pull_request: https://github.com/python/cpython/pull/29505 ___ Python tracker ___

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-09 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +27757 pull_request: https://github.com/python/cpython/pull/29506 ___ Python tracker ___

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-09 Thread Irit Katriel
Irit Katriel added the comment: That's probably why --findleaks was deprecated (in 3.8, PR12951). We could remove it now. + vstinner -- nosy: +iritkatriel, vstinner ___ Python tracker

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-09 Thread Irit Katriel
Irit Katriel added the comment: New changeset c5bfb88eb6f82111bb1603ae9d78d0476b552d66 by Irit Katriel in branch '3.10': [3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480) (GH-29506)

[issue45757] compiler emits EXTENDED_ARG + NOP sequence in 3.10

2021-11-09 Thread Irit Katriel
Irit Katriel added the comment: > I don't think that it does, since oparg gets totally reassigned each time > we load a new instruction. EXTENDED_ARG actually needs to hack around > this by advancing the instruction itself, updating oparg, and jumping > straight into the next opcode. Right,

  1   2   >