[issue38373] List overallocation strategy

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18303 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18952 ___ Python tracker

[issue39943] Meta: Clean up various issues in C internals

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-11 Thread Zackery Spytz
Zackery Spytz added the comment: Okay, Serhiy. I think your patch is a better choice. -- ___ Python tracker ___ ___

[issue39885] IDLE right click outside of any selection should clear it

2020-03-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +18302 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18951 ___ Python tracker ___

[issue39943] Meta: Clean up various issues in C internals

2020-03-11 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18301 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18950 ___ Python tracker ___

[issue39922] Remove unused args in Python/compile.c

2020-03-11 Thread Andy Lester
Change by Andy Lester : -- pull_requests: -18300 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39922] Remove unused args in Python/compile.c

2020-03-11 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18300 pull_request: https://github.com/python/cpython/pull/18949 ___ Python tracker ___

[issue39943] Meta: Clean up various issues in C internals

2020-03-11 Thread Andy Lester
Change by Andy Lester : -- title: Meta: Clean up various issues -> Meta: Clean up various issues in C internals ___ Python tracker ___

[issue39943] Meta: Clean up various issues

2020-03-11 Thread Andy Lester
New submission from Andy Lester : This is a meta-ticket for a number of small PRs that clean up some internals. Issues will include: * Removing unnecessary casts * consting pointers that can be made const * Removing unused function arguments * etc -- components: Interpreter Core

[issue39885] IDLE right click outside of any selection should clear it

2020-03-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE right click should clear any selection -> IDLE right click outside of any selection should clear it ___ Python tracker ___

[issue37224] test__xxsubinterpreters fails randomly

2020-03-11 Thread Kyle Stanley
Kyle Stanley added the comment: I have a few spare cycles to take another stab at this issue. I can say with some certainty that the failure in test__xxsubinterpreters.DestroyTests does not occur on the latest commit to master (3.9): ``` $ ./python -m test test__xxsubinterpreters --match

[issue39885] IDLE right click should clear any selection

2020-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Restore not clearing the selection when click within it. See Exception in 1 above. Users need to continue to see what will be copied or cut (which also happens with paste). The breakpoint toggle and goto file/line options on the context menu need the line

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39939] Add str methods to remove prefixes or suffixes

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

[issue39940] Micro-optimizations to PySequence_Tuple()

2020-03-11 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39942] Making instance of `TypeVar` fails because of missing `__name__`

2020-03-11 Thread jack1142
New submission from jack1142 : Example code: ``` code = """ import typing T = typing.TypeVar("T") """ exec(code, {}) ``` Traceback: ``` Traceback (most recent call last): File "", line 1, in File "", line 3, in File "C:\Python38\lib\typing.py", line 603, in __init__ def_mod =

[issue38080] 2to3 urllib fixer: missing fix for urllib.getproxies

2020-03-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue39847] EnterNonRecursiveMutex on win32 can hang for 49.7 days: use GetTickCount64() rather than GetTickCount()

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset 60b1b5ac56fe6099a3d358dc9d6cd6ec72fce2d8 by Miss Islington (bot) in branch '3.8': bpo-39847: EnterNonRecursiveMutex() uses GetTickCount64() (GH-18780) https://github.com/python/cpython/commit/60b1b5ac56fe6099a3d358dc9d6cd6ec72fce2d8

[issue38080] 2to3 urllib fixer: missing fix for urllib.getproxies

2020-03-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 276a84a0a6c694ce227bf36ec2e2e6ec6686170f by José Roberto Meza Cabrera in branch 'master': bpo-38080: Added "getproxies" to urllib fixes in the 2to3 tool (GH-16167)

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: Actually, I had already done that: diff --git a/Lib/_aix_support.py b/Lib/_aix_support.py index 2c5cd3297d..c7f4491633 100644 --- a/Lib/_aix_support.py +++ b/Lib/_aix_support.py @@ -12,7 +12,8 @@ try: _tmp_bd = get_config_var("AIX_BUILDDATE") _bgt =

[issue39853] Segmentation fault with urllib.request.urlopen and threads

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

[issue39847] EnterNonRecursiveMutex on win32 can hang for 49.7 days: use GetTickCount64() rather than GetTickCount()

2020-03-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +18299 pull_request: https://github.com/python/cpython/pull/18945 ___ Python tracker

[issue39847] EnterNonRecursiveMutex on win32 can hang for 49.7 days: use GetTickCount64() rather than GetTickCount()

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 64838ce7172c7a92183b39b22504b433a33a884d by bobince in branch 'master': bpo-39847: EnterNonRecursiveMutex() uses GetTickCount64() (GH-18780) https://github.com/python/cpython/commit/64838ce7172c7a92183b39b22504b433a33a884d --

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch nosy: +vstinner nosy_count: 1.0 -> 2.0 pull_requests: +18298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18944 ___ Python tracker

[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +18297 pull_request: https://github.com/python/cpython/pull/18943 ___ Python tracker ___

[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset 894adc18b4fb7246b762276a50a332c0e4f0e0f0 by Steve Dower in branch 'master': bpo-39930: Fix MSBuild detection for Build Tools (GH-18938) https://github.com/python/cpython/commit/894adc18b4fb7246b762276a50a332c0e4f0e0f0 --

[issue39927] IDLE.app fails on macOS 10.15 if denied access to Documents

2020-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: idlemain.py should be documented within idlelib* (I will do that, README.txt and maybe macosx.py). Currently, the chdir is only part of idle.app, not idle on Mac, because it does not happen when starting IDLE in Terminal. This is confusing. As near as I

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: The initial issue is now fixed. I close the issue. take_gil() only checks if the thread must exit once the GIL is acquired. Maybe it would be able to exit earlier, but I took the safe approach. If we must exit, drop the GIL and then exit. That's basically

[issue39877] Daemon thread is crashing in PyEval_RestoreThread() while the main thread is exiting the process

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-39941 "multiprocessing: Process.join() should emit a warning if the process is killed by a signal" which may help to detect the issue earlier on any platform, not only on FreeBSD. -- ___ Python

[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower
Steve Dower added the comment: Okay, I think I've got an approach that works even on the apparently misconfigured installs on the buildbots (and some user machines, if this is the same underlying issue as issue38597). I wasn't able to reproduce it though, so I have no idea why they don't

[issue39941] multiprocessing: Process.join() should emit a warning if the process is killed by a signal

2020-03-11 Thread STINNER Victor
New submission from STINNER Victor : While debugging bpo-39877, I was surprising that Python crash was only noticed on FreeBSD by a side effect. On FreeBSD, coredump files are created in the current directory. But Python regrtest fails if a test creates a file and doesn't remove it. I found

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Try to replace Lib/_aix_support.py with attached _aix_support.py: in short, it uses _bootsubprocess if subprocess is not available. -- Added file: https://bugs.python.org/file48972/_aix_support.py ___ Python

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Stefan Krah
Stefan Krah added the comment: I checked that NumPy also packs correctly: >>> import numpy as np >>> x = np.array([0,1,2,3], dtype=np.bool) >>> x.tobytes() b'\x00\x01\x01\x01' So I vote for not handling incorrectly packed values and removing "and any non-zero value will be True when

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Michael: this issue is about bootstraping Python. If you want to test a patch or test something else, you must restart from a clean copy of the source code. Either use "make distclean", "git clean -fdx", or recreate the source directory (git clone,

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry Raul, but I already have a PR written. It includes minor refactoring, better error handling in the nearby code, improved tests, fixed documentation and comments which incorrectly described the current behavior. It took time to determine what parts

[issue39940] Micro-optimizations to PySequence_Tuple()

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you have any benchmarks? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue39940] Micro-optimizations to PySequence_Tuple()

2020-03-11 Thread Marco Sulla
New submission from Marco Sulla : This is a little PR with some micro-optimizations to the PySequence_Tuple() function. Mainly, it simply add a support variable new_n_tmp_1 instead of reassigning newn multiple times. -- components: Interpreter Core messages: 363974 nosy: Marco Sulla

[issue35712] Make NotImplemented unusable in boolean context

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > How is -1 interpreted? Does it become a TypeError? It is interpreted as error. It requires an exception be set. If you return -1 without setting an exception you will usually get a SystemError or crash. Oh, and this may happen during executing other

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: OK. I removed the _aix_support.py from the formula. After make see the new (rather) old build paths for "socket" aixtools@x064:[/home/aixtools/python-3.9]find . | grep socket ./Doc/howto/sockets.rst ./Doc/library/socket.rst ./Doc/library/socketserver.rst

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Change by Michael Felt : Added file: https://bugs.python.org/file48971/make.log ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: So, this is what I have on screen. Will add the log in a moment. [1] + Donemake 2>&1|tee make.log & aixtools@x064:[/home/aixtools/python-3.9]find . | grep socket ./Doc/howto/sockets.rst ./Doc/library/socket.rst

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18295 pull_request: https://github.com/python/cpython/pull/18942 ___ Python tracker ___

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: So, with the patch - the process stops at: aixtools@x064:[/home/aixtools/python-3.9]make CC='xlc_r' LDSHARED='Modules/ld_so_aix xlc_r -bI:Modules/python.exp' OPT='-DNDEBUG -O' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build Traceback

[issue35712] Make NotImplemented unusable in boolean context

2020-03-11 Thread Ethan Furman
Ethan Furman added the comment: Serhiy: -- > First, it is impossible. nb_bool and PyObject_IsTrue() can return > only three value: 1 for true, 0 for false, and -1 for error. Huh. How is -1 interpreted? Does it become a TypeError? > It is not possible to represent NotImplemented

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Raul Gallegos
Raul Gallegos added the comment: hi @serhiy.storchaka is this something that you think could be done by a new contributor? I'd really love to take care of this, I can improve on the PR I was preparing https://github.com/python/cpython/pull/18533 --

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: I'll take a look at what you are suggesting. The starting point (before the rm command) is the make command that I run again. What I notice - read am thinking - is that _socket.so is being created by the "setup.py build" - so, if you can help me make that bit

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Stefan Krah
Stefan Krah added the comment: Okay, in memoryview the cast tests can trigger UB checks. memoryview assumes that bool is packed correctly, so just casting does not work. Casting anything to bool is of course a bit silly anyway. diff --git a/Lib/test/test_buffer.py b/Lib/test/test_buffer.py

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Yeah, sys must be imported first. Did you try to fix the patch? Does it work? -- ___ Python tracker ___

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was originally introduced in https://github.com/ghaering/pysqlite/commit/780a76dcd8f4142b6ecbd423f52e0ccf067fc277. I think that original column names should be returned when PARSE_COLNAMES is not set. Working on a PR. -- assignee: ->

[issue39520] AST Unparser can't unparse ext slices correctly

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset cd07b4da659cb5e86fe7c856aca866b9db466fce by Miss Islington (bot) in branch '3.8': bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304) https://github.com/python/cpython/commit/cd07b4da659cb5e86fe7c856aca866b9db466fce

[issue39520] AST Unparser can't unparse ext slices correctly

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset d0837d2af2c23c3a4b6274f76ca6422a427cc438 by Miss Islington (bot) in branch '3.7': bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304) https://github.com/python/cpython/commit/d0837d2af2c23c3a4b6274f76ca6422a427cc438

[issue39520] AST Unparser can't unparse ext slices correctly

2020-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +18294 pull_request: https://github.com/python/cpython/pull/18941 ___ Python tracker ___

[issue39520] AST Unparser can't unparse ext slices correctly

2020-03-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18293 pull_request: https://github.com/python/cpython/pull/18940 ___ Python tracker

[issue35712] Make NotImplemented unusable in boolean context

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No. First, it is impossible. nb_bool and PyObject_IsTrue() can return only three value: 1 for true, 0 for false, and -1 for error. It is not possible to represent NotImplemented without breaking all extensions. Currently if not a: b()

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I tried your patch on AIX 7.2, looks like you need to shift sys import to the top Traceback (most recent call last): File "/home/isidentical/cpython/./setup.py", line 16, in sys.modules['subprocess'] = _bootsubprocess NameError: name 'sys' is not

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-11 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Berker Peksag
Berker Peksag added the comment: https://github.com/ghaering/pysqlite/commit/f3d452f2daeb432b8ad89fa4f087164bfd6ddc12 should probably give more context than that huge svnmerge commit :) (Removed older Python versions since even if decide to change the behavior from 2006, it may break

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-11 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +18292 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18939 ___ Python tracker ___

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-11 Thread Dennis Sweeney
New submission from Dennis Sweeney : Following discussion here ( https://mail.python.org/archives/list/python-id...@python.org/thread/RJARZSUKCXRJIP42Z2YBBAEN5XA7KEC3/ ), there is a proposal to add new methods str.cutprefix and str.cutsuffix to alleviate the common misuse of str.lstrip and

[issue20039] Missing documentation for argparse.ArgumentTypeError

2020-03-11 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39938] RotatingFileHandler does not support any mode other than 'a'.

2020-03-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39935] argparse: help parameter not documented in add_subparsers().add_parser

2020-03-11 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +18291 pull_request: https://github.com/python/cpython/pull/18938 ___ Python tracker ___

[issue39938] RotatingFileHandler does not support any mode other than 'a'.

2020-03-11 Thread Eric Govatos
Change by Eric Govatos : -- title: RotatingFileHandler does not support any other mode than 'a'. -> RotatingFileHandler does not support any mode other than 'a'. ___ Python tracker

[issue39938] RotatingFileHandler does not support any other mode than 'a'.

2020-03-11 Thread Eric Govatos
New submission from Eric Govatos : The RotatingFileHandler class located within lib/logging/handlers.py does not accept any other 'mode' value than its default value of 'a' - even when the parameter is supplied, such as 'ab', to append bytes, this is disregarded and the mode is set back to

[issue35712] Make NotImplemented unusable in boolean context

2020-03-11 Thread Ethan Furman
Ethan Furman added the comment: I know I'm late to the party, but if bool(NotImplemented) returned `NotImplemented` wouldn't that solve the problem? def __ge__(self, other): return not self.__lt__(other) then if __lt__ returns then __gt__ returns NotImplemented

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Stefan Krah
Stefan Krah added the comment: So which memoryview test (unless it is using the struct module) relies on UB? -- ___ Python tracker ___

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Stefan Krah
Stefan Krah added the comment: Concerning memoryview, I've looked at this very briefly: memoryview does not pack values directly, it casts first, which is legal: #define PACK_SINGLE(ptr, src, type) \ do { \ type x;

[issue36144] Dictionary union. (PEP 584)

2020-03-11 Thread Brandt Bucher
Brandt Bucher added the comment: Yes, I can add a section explaining that after the PEP was accepted, we decided to add the operators to several non-dict mappings as well. I'm also going to add some explanation as to why Mapping/MutableMapping didn't grow them, too. --

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Another approach to patch _aix_support.py, replace: try: import subprocess _have_subprocess = True _tmp_bd = _bgt = get_config_var("BUILD_GNU_TYPE") except ImportError: # pragma: no cover _have_subprocess = False _tmp_bd = None

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Michael.Felt: Can you please try to build the master branch of Python with the attached setup-aix.patch applied? Something like: git checkout master git apply setup-aix.patch ./configure CFLAGS="-O0" make 2>&1|tee make.log Then attach make.log. --

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: While looking through the history of bot builds - I consistently see 420 tests being done on one bot - but test_socket does not always show up in the list. I'll look at this as I can, but "free-time" is limited. Delay is not a lack of interest. --

[issue39937] Suggest the usage of Element.iter() instead of iter() in whatsnew

2020-03-11 Thread Rahul Kumaresan
New submission from Rahul Kumaresan : In the whatsnew section, under the point which mentions the deprecation of getchildren() and getiterator() through bpo-36543, it is suggested to use iter() instead. Ideally there should be a suggestion to use Element.iter() instead. -- assignee:

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-03-11 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi nosy_count: 3.0 -> 4.0 pull_requests: +18289 pull_request: https://github.com/python/cpython/pull/18937 ___ Python tracker ___

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: AIX_BUILDDATE variable is written in pyconfig.h by configure: > https://buildbot.python.org/all/#/builders/119/builds/383 configure: "checking for the system builddate... 1806" > https://buildbot.python.org/all/#/builders/119/builds/451 configure:

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-11 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 5.0 -> 6.0 pull_requests: +18288 pull_request: https://github.com/python/cpython/pull/18936 ___ Python tracker ___

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-39936 "Python fails to build _asyncio on module on AIX" to debug the AIX build failure. -- ___ Python tracker ___

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
New submission from STINNER Victor : The commit 1ec63b62035e73111e204a0e03b83503e1c58f2e of bpo-39763 broke the Python compilation on AIX: https://bugs.python.org/issue39763#msg363749 -- The last successful build was before the commit 1ec63b62035e73111e204a0e03b83503e1c58f2e:

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-11 Thread Michael Felt
Michael Felt added the comment: After a checkout the build finishes (successfully) with: Python build finished successfully! The necessary bits to build these optional modules were not found: _gdbm _lzma _sqlite3 _tkinter _uuid

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset c22879914b03ff2da768e557b5c00e9c8c62c695 by Miss Islington (bot) in branch '3.8': bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880) https://github.com/python/cpython/commit/c22879914b03ff2da768e557b5c00e9c8c62c695

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-11 Thread Michael Felt
Michael Felt added the comment: This was already confirmed by both bots... The last bot build that worked (and for both AIX bots) is: dffe4c07095e0c693e094d3c140e85a68bd8128e The first build that failed (for both) is: 1ec63b62035e73111e204a0e03b83503e1c58f2e See (pass)

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset b1b1d5ff11108620f5bc97976bb889f5cbb24373 by Miss Islington (bot) in branch '3.7': bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880) https://github.com/python/cpython/commit/b1b1d5ff11108620f5bc97976bb889f5cbb24373

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 196f1eb6adcfc6a7239330ef508b8bf9dff9940f by Hai Shi in branch 'master': bpo-1635741: Fix refleaks of time module error handling (GH-18486) https://github.com/python/cpython/commit/196f1eb6adcfc6a7239330ef508b8bf9dff9940f --

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks Hai Shi for your 3 latest PRs, I merged them. -- ___ Python tracker ___ ___

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Stefan Behnel: as the 3rd author of the PEP 489, what's your call on this issue? -- nosy: +scoder ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset aa0c0808efbfdee813d2829e49030c667da44e72 by Hai Shi in branch 'master': bpo-1635741: Fix potential refleaks in binascii module (GH-18613) https://github.com/python/cpython/commit/aa0c0808efbfdee813d2829e49030c667da44e72 --

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: > Proposed PR checking if the module state is NULL: > > * PR 18358: _locale module > * PR 18608: audioop module > * PR 18613: binascii Petr suggested to not hold these PRs with this controversial issue. I agree, so I merged these 3 PRs. --

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 41fbf865a35d4fb64f047f98dc24690cb0c170fd by Hai Shi in branch 'master': bpo-1635741: Port audioop extension module to multiphase initialization (PEP 489) (GH-18608)

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset a158168a787e82c4b7b18f6833153188e93627a5 by Hai Shi in branch 'master': bpo-1635741: Port _locale extension module to multiphase initialization (PEP 489) (GH-18358)

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +18287 pull_request: https://github.com/python/cpython/pull/18935 ___ Python tracker ___

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +18286 pull_request: https://github.com/python/cpython/pull/18934 ___ Python tracker

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 704e2065f8b8021a4a6999470fb6ed3453f7679e by Serhiy Storchaka in branch 'master': bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880) https://github.com/python/cpython/commit/704e2065f8b8021a4a6999470fb6ed3453f7679e

[issue39935] argparse: help parameter not documented in add_subparsers().add_parser

2020-03-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue38076] Make struct module PEP-384 compatible

2020-03-11 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- pull_requests: +18285 pull_request: https://github.com/python/cpython/pull/18933 ___ Python tracker ___

[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- pull_requests: +18284 pull_request: https://github.com/python/cpython/pull/18932 ___ Python tracker ___

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +berker.peksag, ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Petr Viktorin
Petr Viktorin added the comment: Oh! I just reead the docs more carefully; they say: For the '?' format character, the return value is either True or False. When packing, the truth value of the argument object is used. Either 0 or 1 in the native or standard bool representation will be

[issue39935] argparse: help parameter not documented in add_subparsers().add_parser

2020-03-11 Thread Nazime Koussaila Lakehal
New submission from Nazime Koussaila Lakehal : The parameter help in the method add_parser of _SubParsersAction (that we obtain with ArgumentParser.add_subparsers()) Is not documented. In the documentation we can find: The add_subparsers() method is normally called with no arguments and

  1   2   >