[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:

[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

[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

[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:

[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")

[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:

[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

[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

[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 ___ ___

[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

[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

[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

[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 ___

[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

[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 ___

[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 --

[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

[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

[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. --

[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

[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

[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

[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

[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

[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 --

[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:

[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

[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:

[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

[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

[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 ___

[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

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

2020-02-28 Thread Zachary Ware
Zachary Ware added the comment: Agreed with Eric. -- nosy: +zach.ware resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2020-02-28 Thread Maor Kleinberger
Change by Maor Kleinberger : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2020-02-28 Thread miss-islington
miss-islington added the comment: New changeset 7f53d87cb0324e391c969855ed8f4b3255f9f744 by Miss Islington (bot) in branch '3.8': bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598) https://github.com/python/cpython/commit/7f53d87cb0324e391c969855ed8f4b3255f9f744

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

2020-02-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18057 pull_request: https://github.com/python/cpython/pull/18696 ___ Python tracker

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

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c2f7eb254bee036afc8a71437ec6aac82f06a1ce by Shantanu in branch 'master': bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598) https://github.com/python/cpython/commit/c2f7eb254bee036afc8a71437ec6aac82f06a1ce --

[issue39783] Optimize construction of Path from other Paths by just returning the same object?

2020-02-28 Thread Barney Gale
Barney Gale added the comment: Attempted fix shown here: https://github.com/barneygale/cpython/commit/784630ef6ad05031abdefa523e61e0629b15e201 Note that I've already removed context manager support (and hence `_closed`) in this branch. -- nosy: +barneygale

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

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified the additions in token.py. Thanks for the report. -- assignee: docs@python -> terry.reedy nosy: +terry.reedy type: -> behavior versions: +Python 3.8, Python 3.9 ___ Python tracker

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

2020-02-28 Thread Steve Dower
Steve Dower added the comment: Isn't that what we ended up merging? (Goes to check). Ah, that was 3.30.1. Sure, go for it. We'll have RCs of everything before the next final releases go out, so provided someone double checks that it's all good before then I'm okay with it. --

[issue39790] LICENSE.TXT file does not contain all incorporated software

2020-02-28 Thread Steve Dower
New submission from Steve Dower : Looking at https://docs.python.org/3/license.html there's a list of "incorporated software" licenses, most of which say you need to distribute the license. Right now, the LICENSE.txt file we distribute on Windows (made from the /LICENSE and

[issue39717] Fix exception causes in tarfile module

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: While I have no specific opinion on tarfile, I strongly disagree with a blanket prohibition on 'from None'. Its proper use is to maintain a defined API and hide irrelevant implementation details. Realistic toy example: def f(x, y): "Return (x+y)/y for

[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: I agree. I've updated the branches for source deps and cpython. I'll wait for Steve's approval before I open a new PR over at cpython-source-deps and update GH-18678. -- ___ Python tracker

[issue39682] pathlib.Path objects can be used as context managers

2020-02-28 Thread Antony Lee
Antony Lee added the comment: A problem of having this bit of state in paths is that it violates assumptions based on immutability/hashability, e.g. with from pathlib import Path p = Path("foo") q = Path("foo") with p: pass unique_paths = {p, q}

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

2020-02-28 Thread Ned Deily
Ned Deily added the comment: I would prefer to go to 3.31.1 at this point particularly given the track record of the SQLite project. It's been released for a month now. Any objections, Steve? -- ___ Python tracker

[issue36516] Python Launcher can not recognize pyw file as Python GUI Script file type correctly.

2020-02-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR. I believe there also used to be a distinction between .py and .pyw files back in the distant past of classic MacOS (9 and earlier) and limited support for .pyw was carried over into Mac OS X (10). But most of the references to .pyw for macOS

[issue39789] Update Windows release build machines to latest versions

2020-02-28 Thread Steve Dower
New submission from Steve Dower : Shouldn't have any impact at all, but I'm going to mention it here so it gets in the NEWS file. Just in case someone hits an obscure edge case and is trying to find out what changed. -- assignee: steve.dower components: Windows messages: 362931 nosy:

[issue39789] Update Windows release build machines to latest versions

2020-02-28 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +18056 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18695 ___ Python tracker ___

[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: You're welcome. If you are ok with that, I'd be happy to prepare a PR for the source deps for sqlite3 v3.31.1, and update GH-18678 as soon as it is tagged. -- ___ Python tracker

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

2020-02-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the PRs. If we're going to update now as we should, why not to 3.31.1 which is current? -- ___ Python tracker ___

[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: Yes, we need the tag for the Windows build, so the PR currently fails the Windows checks. (Tagging must be done explicitly by the maintainers, IIRC.) I also forgot to add a NEWS entry, so I'll do another push to add those (and kick off the CI) when

[issue39771] EmailMessage.add_header doesn't work

2020-02-28 Thread hwgdb Smith
hwgdb Smith added the comment: Sorry, the Gmail web is correctly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2020-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: I strongly disagree. Even if I thought it was a good idea (I don't), we'd break too much code by making this change now. -- nosy: +eric.smith ___ Python tracker

[issue38780] SysLogHandler crash atexit

2020-02-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I'm a bit uncertain if the previous patch can handle the emit() case correctly. Proposed improvement in attached patch (0002-Improve-emit.patch). -- Added file: https://bugs.python.org/file48934/0002-Improve-emit.patch

[issue39771] EmailMessage.add_header doesn't work

2020-02-28 Thread hwgdb Smith
hwgdb Smith added the comment: And i just send a mail to my Gmail. I view it using web, it is incorrectly! -- ___ Python tracker ___

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

2020-02-28 Thread Steve Dower
Steve Dower added the comment: We still need the tag added to the cpython-source-deps repo, and I still can't complete a clone right now (something is strange with SSL to GitHub on my (temporary) internet connection). Zach - can you tag it?

[issue39771] EmailMessage.add_header doesn't work

2020-02-28 Thread hwgdb Smith
hwgdb Smith added the comment: https://litmus.com/blog/infographic-the-2019-email-client-market-share And there is a survey about email client market share. You see outlook is top 3. -- ___ Python tracker

[issue38780] SysLogHandler crash atexit

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file48933/0001-bpo-38780-Harden-socket-use-in-logging.handlers.patch ___ Python tracker ___

[issue38780] SysLogHandler crash atexit

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Removed file: https://bugs.python.org/file48932/0001-bpo-38780-Harden-socket-use-in-logging.handlers.patch ___ Python tracker ___

[issue39771] EmailMessage.add_header doesn't work

2020-02-28 Thread hwgdb Smith
hwgdb Smith added the comment: I think program's goal is to solve problem, not solve the "standard". OK, if you insist that "standard" has the Top priority, could you please tell me a way to change the default behavior of the new api to use the "=?utf-8?b?" parameter style. Is there a

[issue38780] SysLogHandler crash atexit

2020-02-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Attached patch is based on Ronald Oussoren's and Alan Robertson's comments: Initialise self.socket to None early in __init()__, and then check for None in close() and emit(). Passes make test on 3.9, 3.8 and 3.7. If this solution is ok I'll add a

[issue39783] Optimize construction of Path from other Paths by just returning the same object?

2020-02-28 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Decorating __new__ with lru_cache would likely run into memory leakage > problems? I think the LRU cache would be for returning the same instance when called with the same string. I don't think it would be needed to return the same instance when called with

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

2020-02-28 Thread Marco Sulla
New submission from Marco Sulla : (venv_3_9) marco@buzz:~/sources/python-frozendict$ python Python 3.9.0a0 (heads/master-dirty:d8ca2354ed, Oct 30 2019, 20:25:01) [GCC 9.2.1 20190909] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = 1E9 >>> type(a) IMHO

[issue37708] Harmonize random.choice(s) behavior with random.sample on iterators

2020-02-28 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +18055 pull_request: https://github.com/python/cpython/pull/18694 ___ Python tracker ___

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread miss-islington
miss-islington added the comment: New changeset 445152e0d3ab6e4381aef8d1404c2c17a516070f by Miss Islington (bot) in branch '3.8': bpo-13790: Change 'string' to 'specification' in format doc (GH-18690) https://github.com/python/cpython/commit/445152e0d3ab6e4381aef8d1404c2c17a516070f

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread miss-islington
miss-islington added the comment: New changeset 5157506e043f75f49caecae1c6afee8517a7bbb0 by Miss Islington (bot) in branch '3.7': bpo-13790: Change 'string' to 'specification' in format doc (GH-18690) https://github.com/python/cpython/commit/5157506e043f75f49caecae1c6afee8517a7bbb0

[issue39787] test_ssl and test_urllib2_localnet failing with new OpenSSL

2020-02-28 Thread Matheus Castanho
New submission from Matheus Castanho : test_ssl and test_urllib2_localnet are failing when Python is built against top-of-tree OpenSSL. I'm attaching the output of: `regrtest.py test_ssl test_urllib2_localnet -W` The output is from a powerpc64le machine with Python 3.8.2+ (1bbb81b251bc) and

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +18054 pull_request: https://github.com/python/cpython/pull/18693 ___ Python tracker ___

[issue39710] "will be returned as unicode" reminiscent from Python 2

2020-02-28 Thread Pete Wicken
Change by Pete Wicken : -- pull_requests: +18053 pull_request: https://github.com/python/cpython/pull/18691 ___ Python tracker ___

[issue39710] "will be returned as unicode" reminiscent from Python 2

2020-02-28 Thread Pete Wicken
Change by Pete Wicken : -- pull_requests: -18050 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +18052 pull_request: https://github.com/python/cpython/pull/18692 ___ Python tracker

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 916895f93905f8b8dad677cceff501833f5a633a by Terry Jan Reedy in branch 'master': bpo-13790: Change 'string' to 'specification' in format doc (GH-18690) https://github.com/python/cpython/commit/916895f93905f8b8dad677cceff501833f5a633a

[issue39710] "will be returned as unicode" reminiscent from Python 2

2020-02-28 Thread Pete Wicken
Change by Pete Wicken : -- nosy: +Wicken nosy_count: 3.0 -> 4.0 pull_requests: +18050 pull_request: https://github.com/python/cpython/pull/18691 ___ Python tracker ___

[issue36516] Python Launcher can not recognize pyw file as Python GUI Script file type correctly.

2020-02-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I might have missed something, but I thought .pyw files were a Windows specific thing. -- nosy: +erlendaasland ___ Python tracker

[issue37266] Daemon threads must be forbidden in subinterpreters

2020-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also cc'ing Kyle for the concurrent.futures issue. -- nosy: +aeros ___ Python tracker ___ ___

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR-18690 makes the approved change of 'string' to 'specification'. After merging, I will re-review the other changes in i13790b.diff and possibly make another PR for review. -- versions: +Python 3.9 -Python 2.7, Python 3.6

[issue39786] Have the heaps library support max heap

2020-02-28 Thread signing_agreement
New submission from signing_agreement : For numeric types, I can negate the numeric argument for max heaps, but if I have strings, I cannot go about negating them. -- components: Library (Lib) messages: 362909 nosy: signing_agreement priority: normal severity: normal status: open

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2020-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +18049 pull_request: https://github.com/python/cpython/pull/18690 ___ Python tracker ___

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

2020-02-28 Thread fireattack
fireattack added the comment: Just copy/paste a related issue reported in issue39785: When run a python script with "#!/usr/bin/python" shebang with py.exe, it will always use python2 instead of python3 on Win 10, despite the default being set to py3 already (so does the PATH). According

[issue8824] Improve documentation of exec

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided that the alternate addition in #13557 is enough. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue39757] EmailMessage bad encoding for international domain

2020-02-28 Thread R. David Murray
R. David Murray added the comment: This is not actually a duplicate of 11783. Rereading (parts of) that issue, we decided we currently have no good way to do automatic conversion between unicode and internationalized domains, so the user of the library has to do it themselves. This means

[issue14678] Update zipimport to support importlib.invalidate_caches()

2020-02-28 Thread Brett Cannon
Brett Cannon added the comment: It looks like it hasn't been done, else https://github.com/python/cpython/blob/master/Lib/zipimport.py would have some definition of a invalidate_caches() method. And specifically the finder lacks that method so it can be called by

[issue39781] IDLE: Do not jump when select in codecontext

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

[issue39704] Disable code coverage

2020-02-28 Thread Brett Cannon
Brett Cannon added the comment: I don't know if backporting will be needed; probably depends on the CI and whether they always pull from master or the branch that was affected. But I just tried backporting regardless and there's conflicts, so it will have to be done manually. --

[issue39771] EmailMessage.add_header doesn't work

2020-02-28 Thread R. David Murray
R. David Murray added the comment: Since Outlook is one of the mailers that generates the non-RFC-compliant headers, it doesn't surprise me all that much that it can't interpret the RFC compliant headers correctly. I'm not sure there is anything we can do here. I suppose someone could do a

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-28 Thread miss-islington
miss-islington added the comment: New changeset 846ca4961da24669e6e0c901986e66ff485917b2 by Miss Islington (bot) in branch '3.8': bpo-39781: Do not jump when select in IDLE codecontext (GH-18683) https://github.com/python/cpython/commit/846ca4961da24669e6e0c901986e66ff485917b2 --

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

2020-02-28 Thread Steve Dower
Steve Dower added the comment: So we're missing two things to move this forward: 1. A clear specification (and user-facing explanation) of the behaviour of py.exe in the presence of all possible shebangs and PATH settings 2. Someone willing to update the code Given the current behaviour is

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-28 Thread miss-islington
miss-islington added the comment: New changeset f4198aee4c288ce47c5803e87a461e31f81a0138 by Miss Islington (bot) in branch '3.7': bpo-39781: Do not jump when select in IDLE codecontext (GH-18683) https://github.com/python/cpython/commit/f4198aee4c288ce47c5803e87a461e31f81a0138 --

[issue39784] Tuple comprehension

2020-02-28 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: This change needs to be discussed first on Python-ideas, and ideally needs a PEP (and a sponsor). So you should post it on Python-ideas mailing list or discuss.python.org Ideas section. -- nosy: +BTaskaya ___

[issue39784] Tuple comprehension

2020-02-28 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- Removed message: https://bugs.python.org/msg362898 ___ Python tracker ___ ___ Python-bugs-list

[issue39784] Tuple comprehension

2020-02-28 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: This change needs to be discussed first on Python-ideas, and ideally needs a PEP (and a sponsor). So you should post it on Python-ideas mailing list or discuss.python.org Ideas section. -- nosy: +Batuhan Taskaya

[issue34274] Python launcher behavior with "#!/usr/bin/env python" shebang

2020-02-28 Thread Steve Dower
Change by Steve Dower : -- superseder: -> py.exe ignored PATH when using python3 shebang ___ Python tracker ___ ___

[issue34274] Python launcher behavior with "#!/usr/bin/env python" shebang

2020-02-28 Thread Steve Dower
Steve Dower added the comment: This is not strictly a duplicate of issue28686, but it's close enough, so let's keep the discussion of changing the original shebang behaviour over on that issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue39785] #!/usr/bin/python shebang doesn't use default python (3) on Windows

2020-02-28 Thread Steve Dower
Steve Dower added the comment: This is not strictly a duplicate of issue28686, but it's close enough, so let's keep the discussion of changing the original shebang behaviour over no that issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: ->

[issue39785] #!/usr/bin/python shebang doesn't use default python (3) on Windows

2020-02-28 Thread fireattack
fireattack added the comment: Interestingly, I can't seem to reproduce this bug on my another Win7 machine with similar setup. -- ___ Python tracker ___

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +18048 pull_request: https://github.com/python/cpython/pull/18689 ___ Python tracker ___

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18047 pull_request: https://github.com/python/cpython/pull/18688 ___ Python tracker

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c705fd1e89ccb8f6d414ec817b4616546147d877 by Terry Jan Reedy in branch 'master': bpo-39781: Do not jump when select in IDLE codecontext (GH-18683) https://github.com/python/cpython/commit/c705fd1e89ccb8f6d414ec817b4616546147d877 --

[issue39785] #!/usr/bin/python shebang doesn't use default python (3) on Windows

2020-02-28 Thread fireattack
Change by fireattack : -- title: usr/bin/python doesn't use default python (3) on Windows -> #!/usr/bin/python shebang doesn't use default python (3) on Windows ___ Python tracker

[issue39785] usr/bin/python doesn't use default python (3) on Windows

2020-02-28 Thread fireattack
fireattack added the comment: I've searched and found some related issue, but none is specific for this. For example, Segev Finer mentioned that "[..] "#!/usr/bin/python" which will prefer Python 2" in issue 34274 but didn't mention why it would/should. --

  1   2   >