[issue42238] Deprecate suspicious.py?

2020-11-16 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +22204 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23313 ___ Python tracker ___ __

[issue42366] Use MSVC2019 and /Ob3 option to compile Windows builds

2020-11-16 Thread Ma Lin
New submission from Ma Lin : MSVC2019 has a new option `/Ob3`, it specifies more aggressive inlining than /Ob2: https://docs.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion?view=msvc-160 If use this option in MSVC2017, it will emit a warning: cl : Command line warning D900

[issue42366] Use MSVC2019 and /Ob3 option to compile Windows builds

2020-11-16 Thread Christian Heimes
Christian Heimes added the comment: Could you please try again with PGO? All our official builds use PGO. -- nosy: +christian.heimes ___ Python tracker ___ ___

[issue13888] test_builtin failure when run after test_tk

2020-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is still reproducible on Linux. I do not get a crash, just test failure and some strange output. == FAIL: test_input_tty_non_ascii (test.test_builtin.PtyTests) ---

[issue42366] Use MSVC2019 and /Ob3 option to compile Windows builds

2020-11-16 Thread Ma Lin
Ma Lin added the comment: > Could you please try again with PGO? Please wait. BTW, this option was advised in another project. In that project, even enable `\Ob3`, it still slower than GCC 9 build. If you are interested, see: https://github.com/facebook/zstd/issues/2314 -- _

[issue42102] Make builtins.callable "generic"

2020-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, but making builtins.callable generic looks wrong to me. It is a predicate, not a constructor. If it would be called "iscallable" instead of "callable" nobody would propose to make it generic, right? It's just a coincidence that the name of this pred

[issue42102] Make builtins.callable "generic"

2020-11-16 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Sorry, but making builtins.callable generic looks wrong to me. It is a > predicate, not a constructor. If it would be called "iscallable" instead of > "callable" nobody would propose to make it generic, right? It's just a > coincidence that the name of th

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Gregory P. Smith
New submission from Gregory P. Smith : os.makedirs used to pass its mode argument on down recursively so that every level of directory it created would have the specified permissions. That was removed in Python 3.7 as https://bugs.python.org/issue19930 as if it were a mis-feature. Maybe it w

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2020-11-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: This API change was not strictly a bugfix, it removed a feature existing code was relying on. https://bugs.python.org/issue42367 opened to reconcile the two. -- nosy: +gregory.p.smith ___ Python tracker

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: For consistency, pathlib.Path.mkdir should also gain this option. -- ___ Python tracker ___ ___

[issue42366] Use MSVC2019 and /Ob3 option to compile Windows builds

2020-11-16 Thread Ma Lin
Ma Lin added the comment: In PGO build, the improvement is not much. (3.9 branch, with PGO, build.bat -p X64 --pgo) +-+--+--+ | Benchmark | baseline-pgo | ob3-pgo | +=+==

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternatively we can add an optional argument for the mode of intermediate directories. makedirs(name, mode=0o777, exist_ok=False, intermediate_mode=0o777) -- ___ Python tracker

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Christian Heimes
Christian Heimes added the comment: +1 for restoring the feature +0 for Serhiy's proposal iff intermediate_mode defaults to the value of mode: def makedirs(name, mode=0o777, exist_ok=False, *, intermediate_mode=None): if intermediate_mode is None: intermediate_mode =

[issue42368] Make set ordered

2020-11-16 Thread Dan Gheorghe Haiduc
New submission from Dan Gheorghe Haiduc : Now that dicts are ordered[1], would it by any chance make sense to also order sets? A use case that I ran into is trying to reproducibly get a random.choice from a set (after calling random.seed). At first I did not need reproducibility, and I just

[issue42368] Make set ordered

2020-11-16 Thread Dan Gheorghe Haiduc
Dan Gheorghe Haiduc added the comment: Oops. The reference number [2] in the previous message should instead be https://stackoverflow.com/q/6614447/235463 . -- ___ Python tracker ___

[issue42369] Reading ZipFile not thread-safe

2020-11-16 Thread Thomas
New submission from Thomas : According to https://docs.python.org/3.5/whatsnew/changelog.html#id108 bpo-14099, reading multiple ZipExtFiles should be thread-safe, but it is not. I created a small example where two threads try to read files from the same ZipFile simultaneously, which crashes w

[issue42369] Reading ZipFile not thread-safe

2020-11-16 Thread Thomas
Change by Thomas : -- components: +Library (Lib) type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42369] Reading ZipFile not thread-safe

2020-11-16 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue41100] Support macOS 11 and Apple Silicon Macs

2020-11-16 Thread Max Desiatov
Change by Max Desiatov : -- nosy: -MaxDesiatov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue41100] Support macOS 11 and Apple Silicon Macs

2020-11-16 Thread mattip
mattip added the comment: Over at NumPy we are getting reports that some python built for macOSx 11 is not accepting wheels with the `macosx_10_9_x86_64` platform tag. Could it be related to this issue, another open issue, or some other provider's python? xref https://github.com/numpy/numpy/

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3df5c68487df9d1d20ab0cd06e7942a4f96d40a4 by Victor Stinner in branch 'master': bpo-37205: time.perf_counter() and time.monotonic() are system-wide (GH-23284) https://github.com/python/cpython/commit/3df5c68487df9d1d20ab0cd06e7942a4f96d40a4 ---

[issue42368] Make set ordered

2020-11-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://mail.python.org/pipermail/python-dev/2019-February/156466.html -- nosy: +methane, rhettinger, xtreak ___ Python tracker __

[issue42309] BUILD: AIX-64-bit segmentation fault using xlc

2020-11-16 Thread Michael Felt
Michael Felt added the comment: Added "using xlc" to description. When I have a system that has 64-bit support for gcc - I'll verify that it works, or does not work, for me using gcc. -- title: BUILD: AIX-64-bit segmentation fault -> BUILD: AIX-64-bit segmentation fault using xlc _

[issue40939] Remove the old parser

2020-11-16 Thread Miro Hrončok
Miro Hrončok added the comment: Could the removal of the parser module be documented in https://docs.python.org/3.10/whatsnew/3.10.html please? -- nosy: +hroncok ___ Python tracker __

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread Michael Felt
Michael Felt added the comment: I have been experimenting with different hardware and AIX versions. When building on AIX 5.3 - and the oldest libraries - test_math passes. When I run the test on POWER8, using either xlc or gcc test_math fails with just one element of the test. When I run th

[issue41100] Support macOS 11 and Apple Silicon Macs

2020-11-16 Thread Ned Deily
Ned Deily added the comment: @mattip, it could also be due to https://github.com/pypa/packaging/pull/319. I’m away from the keyboard fir the moment and can’t investigate further. -- ___ Python tracker __

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22205 pull_request: https://github.com/python/cpython/pull/23314 ___ Python tracker ___ __

[issue42368] Make set ordered

2020-11-16 Thread Dan Gheorghe Haiduc
Dan Gheorghe Haiduc added the comment: rhettinger wrote [1]: > The existing setobject code has been finely tuned and micro-optimized over > the years, giving it excellent performance on workloads we care about. This worries me also. But I suppose the tuning should make itself visible in ben

[issue42350] Calling os.fork() at Python exit logs: AttributeError: 'NoneType' object has no attribute '_at_fork_reinit'

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5909a494cd3ba43143b28bd439773ed85a485dfc by Victor Stinner in branch 'master': bpo-42350: Fix Thread._reset_internal_locks() (GH-23268) https://github.com/python/cpython/commit/5909a494cd3ba43143b28bd439773ed85a485dfc -- _

[issue42350] Calling os.fork() at Python exit logs: AttributeError: 'NoneType' object has no attribute '_at_fork_reinit'

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

[issue42087] Remove pre-AIX 6.1 dead code paths

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: Michael Felt, David Eldelsohn: are you ok to drop support for AIX 5.3 and older? -- nosy: +David.Edelsohn, aixto...@gmail.com ___ Python tracker

[issue42370] test_ttk_guionly: test_to() fails on the GitHub Ubuntu job

2020-11-16 Thread STINNER Victor
New submission from STINNER Victor : Seen on the Ubuntu job on a GitHub PR: https://github.com/python/cpython/pull/23315/checks?check_run_id=1406797840 == FAIL: test_to (tkinter.test.test_ttk.test_widgets.SpinboxTest) -

[issue42371] Missing colon in timezone suffix raises ValueError

2020-11-16 Thread Bengt Lüers
New submission from Bengt Lüers : I am trying to parse ISO8601-formatted datetime strings with timezones. This works fine when there is a colon separating the hour and minute digits: >>> import datetime >>> datetime.datetime.fromisoformat('2020-11-16T11:00:00+00:00') >>> datetime.datetime(2020,

[issue42371] datetime.fromisoformat(): Omitted colon in timezone suffix raises ValueError

2020-11-16 Thread Bengt Lüers
Change by Bengt Lüers : -- title: datetime.fromisoformat(): Missing colon in timezone suffix raises ValueError -> datetime.fromisoformat(): Omitted colon in timezone suffix raises ValueError ___ Python tracker _

[issue42371] datetime.fromisoformat(): Missing colon in timezone suffix raises ValueError

2020-11-16 Thread Bengt Lüers
Change by Bengt Lüers : -- title: Missing colon in timezone suffix raises ValueError -> datetime.fromisoformat(): Missing colon in timezone suffix raises ValueError ___ Python tracker

[issue40939] Remove the old parser

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: Please also document the removal of the node.h header file. The removal of this file broke the build of the two following packages. mod_wsgi: https://bugzilla.redhat.com/show_bug.cgi?id=1898158 In file included from src/server/mod_wsgi.c:22: src/server/wsgi

[issue42309] BUILD: AIX-64-bit segmentation fault using xlc-v11

2020-11-16 Thread Michael Felt
Michael Felt added the comment: For now, I am going to suggest closing this - as a bug in the xlc-v11 compiler - and not worth researching. I am able to build the 3.9 distribution as well as the 3.10 master using the xlC-v13-1.3.2 (Try and Buy) version. Thanks for thinking together! --

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset ae6cd7cfdab0599139002c526953d907696d9eef by Victor Stinner in branch 'master': bpo-37205: time.time() cannot fail with fatal error (GH-23314) https://github.com/python/cpython/commit/ae6cd7cfdab0599139002c526953d907696d9eef -- ___

[issue42087] Remove pre-AIX 6.1 dead code paths

2020-11-16 Thread David Edelsohn
David Edelsohn added the comment: I think that it is reasonable to drop support for AIX 5.3. -- ___ Python tracker ___ ___ Python-b

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: I close the issue, it's now fixed in master. Thanks for the bug report Ken Healy. While Python 3.8 and 3.9 are also affected, I prefer to leave them unchanged to avoid bad surprises during a minor update (3.x.y bugfix release). If you disagree, please spea

[issue42087] Remove pre-AIX 6.1 dead code paths

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset c79667ff7921444911e8a5dfa5fba89294915590 by Kevin Adler in branch 'master': bpo-42087: Remove support for AIX 5.3 and below (GH-22830) https://github.com/python/cpython/commit/c79667ff7921444911e8a5dfa5fba89294915590 -- __

[issue42350] Calling os.fork() at Python exit logs: AttributeError: 'NoneType' object has no attribute '_at_fork_reinit'

2020-11-16 Thread miss-islington
miss-islington added the comment: New changeset cf70854f10096446115408b5a94030b30594a459 by Miss Islington (bot) in branch '3.9': bpo-42350: Fix Thread._reset_internal_locks() (GH-23268) https://github.com/python/cpython/commit/cf70854f10096446115408b5a94030b30594a459 -- __

[issue42087] Remove pre-AIX 6.1 dead code paths

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: David Edelsohn: "I think that it is reasonable to drop support for AIX 5.3." Good. Thanks Kevin Adler, I merged your PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python t

[issue42350] Calling os.fork() at Python exit logs: AttributeError: 'NoneType' object has no attribute '_at_fork_reinit'

2020-11-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread David Edelsohn
David Edelsohn added the comment: I investigated another problem with nextafter() in 2015 and opened an internal IBM AIX PMR. At the time it was not using decimal float code. The earlier problem was the handling of -0.0. At the time, the code was hand-written assembly language that did not

[issue40939] Remove the old parser

2020-11-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will submit a PR today -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue42372] A crash in do_richcompare

2020-11-16 Thread Alexander Kurakin
New submission from Alexander Kurakin : Sometimes test.py causes a crash in 3.7.9 (and lower to 2018 year or more) on Linux. See also: https://github.com/pandas-dev/pandas/issues/21968 -- components: Interpreter Core files: issue.zip messages: 381113 nosy: kuraga priority: normal seve

[issue42178] failed pickle hangs python on exit in CMD.exe only

2020-11-16 Thread Eryk Sun
Change by Eryk Sun : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue42373] PEP 626 does not specify behavior of tracing for keywords.

2020-11-16 Thread Mark Shannon
New submission from Mark Shannon : PEP 626 doesn't cover which keywords are to be traced if they occur on a line by themselves. Some keywords, like `break`, in Python have behavior associated with them. Others, like `else` are just syntax and don't do anything. Currently, it is not clear which

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: > The earlier problem was the handling of -0.0. At the time, the code was > hand-written assembly language that did not check for IEEE floating point > corner cases. I'm quite happy that my hand written tests detect bugs in nextafter() implementations ;-)

[issue42202] Optimize function annotation

2020-11-16 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 3.0 -> 4.0 pull_requests: +22207 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23316 ___ Python tracker

[issue13892] distutils handling of windows manifest isn't optimal

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue42373] PEP 626 does not specify behavior of tracing for keywords.

2020-11-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Mark, could you kindly create a proposed update to the PEP in the form of a PR so I can evaluate it and we can iterate directly over the final specification? -- ___ Python tracker

[issue42371] datetime.fromisoformat(): Omitted colon in timezone suffix raises ValueError

2020-11-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Steve Dower
Steve Dower added the comment: We can backport it, but the latest version always wins. I deliberately designed the installer (which has multiple embedded MSIs in it) to make sure this worked, so that earlier versions won't overwrite the launcher (anymore). Besides, this is a purely cosmetic

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: You may call it cosmetic, but for me it's a matter of usability. Nevertheless, given how you designed the installer, we can drop the backport. -- ___ Python tracker _

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Guido van Rossum
Change by Guido van Rossum : -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: How can we fix the buildbot? Add #ifdef in mathmodule.c to implement the special cases, but only on AIX? Skip the test? -- ___ Python tracker __

[issue42370] test_ttk_guionly: test_to() fails on the GitHub Ubuntu job

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the failure locally. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue42231] test_zipimport failure

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: The 3 mentionned buildbot workers are back to green, so I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue42173] Drop Solaris support

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. Thanks for the constructive discussion and I hope that more and more downstream patches will be merged in Python upstream ;-) -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed _

[issue41741] test_peg_generator timed out (25 min) on x86 Gentoo Non-Debug with X 3.9

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/51 is green for 2 months, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

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

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: For the signal module, see bpo-41713. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue38261] Tkinter CheckButton default label white in macOS dark mode

2020-11-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The same behaviour can be observed with Tk 8.6.10 build on macOS 11. IMHO the problem is not so much that the default text color changes, but that the background color of the window does not change, it stays the same light color as in light mode. Accordin

[issue42369] Reading ZipFile not thread-safe

2020-11-16 Thread Eric V. Smith
Eric V. Smith added the comment: I'm changing from "crash" to "behavior". We use "crash" for a segfault or equivalent. I realize that most people are unlikely to know this, but we consider "crash" to be more alarming, so I want to make sure it's correct. Also: when this happens, is it always

[issue42371] datetime.fromisoformat(): Omitted colon in timezone suffix raises ValueError

2020-11-16 Thread Paul Ganssle
Paul Ganssle added the comment: This is the expected behavior of `.fromisoformat()`. A similar issue is https://bugs.python.org/issue35829, which asks for the "Z" suffix to be supported. There is a note about this in the documentation: https://docs.python.org/3/library/datetime.html#datetim

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread Michael Felt
Michael Felt added the comment: There seems to be a lot of interaction of OS level and compiler used. * Waiting for the next bot run to get a different compiler. +++ AIX 6.1.6 and older libraries - no test errors reported AIX 7.1.4 and newer libraries - when using the binary built on 6.1.6 (

[issue13561] os.listdir documentation should mention surrogateescape

2020-11-16 Thread Irit Katriel
Irit Katriel added the comment: I think this was added in another section of this doc. See the second paragraph in https://docs.python.org/3/library/os.html#file-names-command-line-arguments-and-environment-variables -- nosy: +iritkatriel ___ Pyth

[issue42316] Walrus Operator in list index

2020-11-16 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou nosy_count: 3.0 -> 4.0 pull_requests: +22208 pull_request: https://github.com/python/cpython/pull/23317 ___ Python tracker ___

[issue42372] A crash in do_richcompare

2020-11-16 Thread Christian Heimes
Christian Heimes added the comment: The Pandas bug links to a traceback: Program received signal SIGSEGV, Segmentation fault. 0x5589b0a0 in PyUnicode_Type () (gdb) bt #0 0x5589b0a0 in PyUnicode_Type () #1 0x5567d8b3 in do_richcompare (op=2, w=0x777a4b20, v=0x7fff

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Steve Dower
Steve Dower added the comment: It's cosmetic in the sense that it *only* affect usability, and not correctness. If it had no impact at all, I'd be calling it "pointless" ;) -- ___ Python tracker ___

[issue1178136] cgitb.py support for frozen images

2020-11-16 Thread Barry Alan Scott
Barry Alan Scott added the comment: Ok. I'll add this to my todo list. -- status: pending -> open ___ Python tracker ___ ___ Pyth

[issue1178136] cgitb.py support for frozen images

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue42374] Unparenthesized walrus is not allowed in genexps

2020-11-16 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : While a walrus is valid withing generator expressions in 3.8, it's not in 3.9 and onward. ➜ cpython git:(master) ✗ python3.8 Python 3.8.6 (default, Oct 3 2020, 16:26:47) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license"

[issue12956] builds fail when installing to --prefix with space in path name

2020-11-16 Thread Irit Katriel
Irit Katriel added the comment: LMO, if you are still interested in this issue, could you be more specific about where you think this should be documented? If you want to create a patch, go for it. -- nosy: +iritkatriel status: open -> pending ___

[issue41713] _signal module leak: test_interpreters leaked [1424, 1422, 1424] references

2020-11-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22209 pull_request: https://github.com/python/cpython/pull/23318 ___ Python tracker ___ __

[issue42374] Unparenthesized walrus is not allowed in genexps

2020-11-16 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +22210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23319 ___ Python tracker _

[issue12726] explain that locale.getlocale() does not read system's locales

2020-11-16 Thread Irit Katriel
Irit Katriel added the comment: I tried "import locale; locale.getlocale()" on macOS and windows (3.10) and linux (3.7) and in all cases I got non-None values. Can we close this as out of date? -- nosy: +iritkatriel status: open -> pending ___ Py

[issue24132] Direct sub-classing of pathlib.Path

2020-11-16 Thread Xtrem532
Change by Xtrem532 : -- nosy: +Xtrem532 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue40939] Remove the old parser

2020-11-16 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Pablo, have you already started on this? I didn't see your comment earlier and I've got a PR ready. -- ___ Python tracker ___ __

[issue42375] subprocess DragonFlyBSD build update

2020-11-16 Thread David CARLIER
Change by David CARLIER : -- components: Extension Modules nosy: devnexen priority: normal pull_requests: 22211 severity: normal status: open title: subprocess DragonFlyBSD build update type: enhancement versions: Python 3.10 ___ Python tracker

[issue40939] Remove the old parser

2020-11-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, have you already started on this? I didn't see your comment earlier > and I've got a PR ready. Yeah, but don't worry: submit your PR and I will review it :) -- ___ Python tracker

[issue40939] Remove the old parser

2020-11-16 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +22212 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23321 ___ Python tracker ___ __

[issue42178] failed pickle hangs python on exit in CMD.exe only

2020-11-16 Thread Eryk Sun
Eryk Sun added the comment: Steve or Zach, please review PR 23290, submitted by Teugea Ioan-Teodor. It modifies the startup sequence for worker processes by creating the child process with a suspended thread and pickling process_obj to a BytesIO instance before resuming the thread and writin

[issue42369] Reading ZipFile not thread-safe

2020-11-16 Thread Thomas
Thomas added the comment: I have not observed any segfaults yet. Only zipfile.BadZipFile exceptions so far. The exact file at which it crashes is fairly random. It even crashes if all threads try to read the same file multiple times. I think the root cause of the problem is that the reads o

[issue40939] Remove the old parser

2020-11-16 Thread miss-islington
miss-islington added the comment: New changeset c26d5916d68c47a20dd941f9e89afdaf85b2711e by Lysandros Nikolaou in branch 'master': bpo-40939: Document removal of the old parser in 3.10 whatsnew (GH-23321) https://github.com/python/cpython/commit/c26d5916d68c47a20dd941f9e89afdaf85b2711e

[issue42102] Make builtins.callable "generic"

2020-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: Well, it's certainly no bug fix, but just as PEP 585 lets us write list[int] instead of typing.List[int], it could be considered useful to be able to write callable[[int, int], str] instead of typing.Callable[[int, int], str]. It's easy enough to make it w

[issue42372] A crash in do_richcompare

2020-11-16 Thread Alexander Kurakin
Alexander Kurakin added the comment: Thanks for reply! Is it call of NULL? If so, shoudn't do_richcompare check it? -- ___ Python tracker ___

[issue4672] Distutils SWIG support blocks use of SWIG -outdir option

2020-11-16 Thread Irit Katriel
Irit Katriel added the comment: I think this was fixed in 11599. Any objections to closing this? -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> Useless error message when distutils fails compiling ___ Python

[issue42376] Add helpers to populate modules in C

2020-11-16 Thread Christian Heimes
New submission from Christian Heimes : It's currently inconvenient and sometimes error-prone to initialize module members in C. Even stdlib modules are sometimes missing error checks or have reference counting issues in error path. I propose add three helpers to deal with common cases: 1) de

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python

[issue42376] Add helpers to populate modules in C

2020-11-16 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +22213 pull_request: https://github.com/python/cpython/pull/23286 ___ Python tracker ___ ___

[issue42335] Python Crashes Exception code 0xc0000374 ntdll.dll

2020-11-16 Thread Charles Staton
Charles Staton added the comment: I'm closing this. I have done a lot of research that seems to point to the way I'm handling threads as the cause, not Python itself. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Pytho

[issue42377] allow typing.cast with TYPE_CHECKING

2020-11-16 Thread Daniel Pinyol
Change by Daniel Pinyol : -- nosy: dpinol priority: normal severity: normal status: open title: allow typing.cast with TYPE_CHECKING type: behavior versions: Python 3.9 ___ Python tracker

[issue42378] logging reopens file with same mode, possibly truncating

2020-11-16 Thread Ed Catmur
New submission from Ed Catmur : If a logging.FileHandler is configured with mode='w', or if logging.basicConfig is called with filemode='w' (as suggested by the Basic Logging Tutorial https://docs.python.org/3/howto/logging.html#logging-basic-tutorial) and if some code logs during shutdown, af

[issue42377] allow typing.cast with TYPE_CHECKING

2020-11-16 Thread Daniel Pinyol
New submission from Daniel Pinyol : Executing the following code we get this error on the "cast" call NameError: name 'A' is not defined ``` from __future__ import annotations from typing import TYPE_CHECKING, Optional, cast if TYPE_CHECKING: class A: pass def f(a: A): pass f(cast

[issue42202] Optimize function annotation

2020-11-16 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +newcomer friendly versions: +Python 3.10, Python 3.9 -Python 3.3 ___ Python tracker ___ ___ P

  1   2   >