[issue39725] unrelated `from None` exceptions lose prior exception information

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Would it generaly work better if 'from None' only suppressed the previous exception? That is the only one that the code writer knows about. -- nosy: +terry.reedy ___ Python tracker

[issue39718] TYPE_IGNORE, COLONEQUAL missing from py38 changes in token docs

2020-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39784] Tuple comprehension

2020-02-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: This was discussed on Python-Ideas: https://mail.python.org/archives/list/python-id...@python.org/message/LSGZF3G4RFVTKXB5Y2EW5USL2JANG5RS/ and on Discuss: https://discuss.python.org/t/why-no-tuple-comprehension/2820/1 In both cases the consensus was mostl

[issue39727] cgi.parse() fatally attempts str.decode when handling multipart/form-data

2020-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +Rhodri James, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue39729] stat.S_ISXXX can raise OverflowError for remote file modes

2020-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue39731] ModuleNotFoundError: No module named '_ctypes'

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: This does not look like a bug in cpython; if is it not, it should be closed. Please ask for help on python-list or another forum that covers installation issues. Or maybe look for a pip user list. -- nosy: +terry.reedy

[issue39742] Enhancement: add `os.getdtablesize(..)` to `os` (`posix`) module

2020-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue39789] Update Windows release build machines to latest versions

2020-02-28 Thread Steve Dower
Steve Dower added the comment: New changeset 03153dd1459fab94f294a118ed1525e34d58601a by Steve Dower in branch 'master': bpo-39789: Update Windows release build machines to VS 2019 (GH-18695) https://github.com/python/cpython/commit/03153dd1459fab94f294a118ed1525e34d58601a -- messag

[issue39789] Update Windows release build machines to latest versions

2020-02-28 Thread Steve Dower
Steve Dower added the comment: The backport to 3.8 doesn't matter so much for the build definition (the build always runs from master, even when targeting earlier versions), but the minor Nuget fixes are necessary, so may as well keep it all in sync. I expect the backport to automerge, so cl

[issue39745] BlockingIOError.characters_written represents number of bytes not characters

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Antoine, Although the text may have preceded your OSError reorganization, you were the last to touch this entry. Is is correct, or does it need change? Revision: f55011f8b63d3b046c1ec580312bc52ca47d721b Author: Antoine Pitrou Date: 10/12/2011 12:57:23 PM Me

[issue39784] Tuple comprehension

2020-02-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Regarding performance, on my computer, the overhead of calling tuple() on a list comp ranges from about 30% for tiny sequences down to about 5% for largish sequences. Tiny sequences are fast either way: [steve@ando cpython]$ ./python -m timeit "[i for i in

[issue39789] Update Windows release build machines to latest versions

2020-02-28 Thread miss-islington
miss-islington added the comment: New changeset 45c4112b7250cb600aa2f3a42b4e6b5bfd2919c4 by Miss Islington (bot) in branch '3.8': bpo-39789: Update Windows release build machines to VS 2019 (GH-18695) https://github.com/python/cpython/commit/45c4112b7250cb600aa2f3a42b4e6b5bfd2919c4

[issue39788] Exponential notation should return an int if it can

2020-02-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: I agree with both Eric and Zachary, but I just wanted to point out that in a Python interpreter with a keyhole optimizer, you can expect that expressions like `1*10**9` to be a constant: # Python 3.5 py> from dis import dis py> dis('1*10**9') 1

[issue39772] Python 2 FAQ shown in h...@python.org auto reply

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The autoresponse seems not to be in any .rst, .htm, .html, or .txt file in the cpython/python repository, so this tracker is not the right place for this issue. I have sent a change request to both h...@python.org and webmas...@python.org. -- nosy:

[issue39772] Python 2 FAQ shown in h...@python.org auto reply

2020-02-28 Thread Mats Wichmann
Mats Wichmann added the comment: Admit it doesn't seem vastly helpful to pile on with a "not us", but the current webmaster@ autoreply is here: https://github.com/tjguk/python-webmaster/blob/master/auto-responder.txt/. It contains this link: https://docs.python.org/3/faq/index.html/. Don't

[issue39782] local varible referenced a Exception won't be collected in function

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: For beginners, 'is this a Python bug' questions should usually be directed elsewhere for initial review. https://docs.python.org/3/reference/compound_stmts.html#the-try-statement "When an exception has been assigned using as target, it is cleared at the end

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 02673352b5db6ca4d3dc804965facbedfe66425d by Gregory P. Smith in branch 'master': bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) https://github.com/python/cpython/commit/02673352b5db6ca4d3dc804965facbedfe66425d -- ___

[issue39784] Tuple comprehension

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: -1 also, not worth the cost, so I would not bother with python-ideas. -- nosy: +terry.reedy status: pending -> open ___ Python tracker ___ __

[issue39784] Tuple comprehension

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'pending' is a worthless state because any subsequent post changes back to 'open'. -- stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker __

[issue28686] py.exe ignored PATH when using python3 shebang

2020-02-28 Thread fireattack
fireattack added the comment: More interestingly, I can't reproduce the same bug on my another Win 7 machine with similar setup. -- ___ Python tracker ___ ___

[issue37266] Daemon threads must be forbidden in subinterpreters

2020-02-28 Thread Kyle Stanley
Kyle Stanley added the comment: > The daemon thread itself is not problematic, because ProcessPoolExecutor uses > an atexit hook to shutdown itself and therefore join the management thread. ThreadPoolExecutor also uses an atexit hook for its shutdown process. Also, it sets each worker thread

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: keeping this open while i investigate if fixing 3.8 and 3.7 is feasible. if nothing else i'll try to add a note to the docs about the issue in 3.5-3.8 with a code sample suggested workaround. -- resolution: -> fixed stage: patch review -> commit

[issue39791] New `files()` api from importlib_resources.

2020-02-28 Thread Jason R. Coombs
New submission from Jason R. Coombs : In the [importlib_resources backport](https://gitlab.com/python-devs/importlib_resources/)... in particular in [issue 58](https://gitlab.com/python-devs/importlib_resources/issues/58) and [merge request 76](https://gitlab.com/python-devs/importlib_resour

[issue39791] New `files()` api from importlib_resources.

2020-02-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-

[issue38380] Update SQLite to 3.30 in Windows and macOS installer builds

2020-02-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Great, thanks folks! I've pushed an update to GH-18678. (BTW, is it kosher to force push to PRs like this?) -- ___ Python tracker __

[issue38380] Update SQLite to 3.31.1 in Windows and macOS installer builds

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: Update SQLite to 3.30 in Windows and macOS installer builds -> Update SQLite to 3.31.1 in Windows and macOS installer builds ___ Python tracker __

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

2020-02-28 Thread swgmma
Change by swgmma : -- nosy: +swgmma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue39792] Two Ctrl+C is required to terminate when a pipe is blocking

2020-02-28 Thread Masahiro Sakai
New submission from Masahiro Sakai : I noticed that two Ctrl+C instead of one are required to terminate following program on macOS and Linux. I guess that the first Ctrl+C is ignored inside one of the finalizers. import os def main(): r, w = os.pipe() f_w = os.fdopen(w, "w")

[issue39791] New `files()` api from importlib_resources.

2020-02-28 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue39725] unrelated `from None` exceptions lose prior exception information

2020-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because there may be more exceptions than the code writer know. The code raised OverflowError and ValueError may be in different function, so the code writer know only about ValueError, but OverflowError is an implementation detail (and may be absent in ot

[issue39786] Have the heaps library support max heap

2020-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but I am going to decline. The min heap has suffices for a wide variety of use cases for many, many years. I see your point when it comes to strings, but that is a somewhat exotic use case. -- nosy: +rhettinger resolut

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

<    1   2