[issue34396] Certain methods that heap allocated subtypes inherit suffer a 50-80% performance penalty

2020-02-28 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-28 Thread Antony Lee
Antony Lee added the comment: It looks good to me, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39779] [argparse] Add parameter to sort help output arguments

2020-02-28 Thread brian.gallagher
brian.gallagher added the comment: That makes sense. For what it's worth, the use-case that inspired this was for commands with a lot of optional arguments in a company where a large amount of contributors (who may not be aware of an effort to order the arguments in the source code) were abl

[issue39712] Doc for `-X dev` option should mention PYTHONDEVMODE

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file48928/0001-3.7-bpo-39712.patch ___ Python tracker ___ ___ Python-

[issue39712] Doc for `-X dev` option should mention PYTHONDEVMODE

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch Added file: https://bugs.python.org/file48926/0001-bpo-39712.patch ___ Python tracker ___ ___

[issue39712] Doc for `-X dev` option should mention PYTHONDEVMODE

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file48927/0001-3.8-bpo-39712.patch ___ Python tracker ___ ___ Python-

[issue39712] Doc for `-X dev` option should mention PYTHONDEVMODE

2020-02-28 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland nosy_count: 9.0 -> 10.0 pull_requests: +18045 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18685 ___ Python tracker

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

2020-02-28 Thread Wang Jie
New submission from Wang Jie : I referenced an Exception object in a function and found memory usage will increase constantly in the accident. I think it may be a bug. I wrote a minimal code to reproduce it. ```py from threading import local, Thread from time import sleep l = {} def t0():

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

2020-02-28 Thread Antony Lee
New submission from Antony Lee : Many functions which take a path-like object typically also accept strings (sorry, no hard numbers here). This means that if the function plans to call Path methods on the object, it needs to first call Path() on the arguments to convert them, well, to Paths.

[issue1207613] Idle Editor: Bottom Scroll Bar

2020-02-28 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

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

2020-02-28 Thread Stefan Krah
Stefan Krah added the comment: This is 3.6.7, compiled --with-pydebug: $ ./main Aborted (core dumped) (gdb) bt #0 0x7f9974077428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x7f997407902a in __GI_abort () at abort.c:89 #2 0x0056e2d1 in P

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

2020-02-28 Thread Stefan Krah
Stefan Krah added the comment: Note that my pybind11 is from GitHub master, it can also be a pybind11 issue. It is interesting that you cannot reproduce your original issue with 3.6, so I'm reopening this issue. I think we need a reproducer without pybind11 though, could you tweak Programs/_

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

2020-02-28 Thread Stefan Krah
Change by Stefan Krah : -- resolution: not a bug -> stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2020-02-28 Thread Evgeny Boytsov
Evgeny Boytsov added the comment: Your callstack is very strange. At line 30 of main.cpp GIL is obviously locked: // importing module in this tread gstate = PyGILState_Ensure(); py::module crash_test = py::module::import( "crash_test" ); <-- import PyGILState_Release( gstate ); I

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

2020-02-28 Thread Stefan Krah
Stefan Krah added the comment: Regarding *my* issue, it could be anything, e.g. a missing call to PyEval_InitThreads() in 3.6: "Changed in version 3.7: This function is now called by Py_Initialize(), so you don’t have to call it yourself anymore." This is why we need to eliminate pybind11 so

[issue29076] Mac installer shell updater script silently fails if default shell is fish

2020-02-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've created a patch that applies fine to 3.7, 3.8 and 3.9, if anyone still is interested. (Backporting to 3.6 and 2.7 is probably not going to happen, but at least the patch applies fine to both of them.) The "Versions" label list should probably

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

2020-02-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2020-02-28 Thread Evgeny Boytsov
Evgeny Boytsov added the comment: I rewrote my example without pybind and eliminated C++ module (I realized that time.sleep() also releases the GIL, so we achieve the same effect). Still the same results: with python 3.7.3 app crashes with attached ASAN output, with python 3.7.3 without http

[issue12915] Add inspect.locate and inspect.resolve

2020-02-28 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 4f17c5cd9a1ec50fe8de7ef68c39220a01a862cb by Vinay Sajip in branch 'master': bpo-12915: Improve Unicode support for package names and attributes. (GH-18517) https://github.com/python/cpython/commit/4f17c5cd9a1ec50fe8de7ef68c39220a01a862cb

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

2020-02-28 Thread Evgeny Boytsov
Evgeny Boytsov added the comment: Also I understood the source of your crash with my initial example. Since you haven't used CMake to configure project, pybind didn't setup required macroses to enable threading support. So no issues in pybind. --

[issue28429] ctypes fails to import with grsecurity's TPE

2020-02-28 Thread E. Castedo Ellerman
E. Castedo Ellerman added the comment: This is now fixed in Python 3.8. See https://bugs.python.org/issue35523 -- nosy: +E. Castedo Ellerman ___ Python tracker ___ ___

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

2020-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Possibly this could be done just by adding @lru_cache to the __new__() method. -- nosy: +rhettinger ___ Python tracker ___ ___

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

2020-02-28 Thread Stefan Krah
Stefan Krah added the comment: > With python 3.7.3 without https://github.com/python/cpython/pull/5278 works > just fine. Thanks, I'm now getting the same results as you. Looking at the smaller test case, I also agree that it should work (as it did in 3.6). -- keywords: +3.7regressio

[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: There is the _closed attribute thought that is mutated by some methods. -- nosy: +remi.lapeyre ___ Python tracker ___ __

[issue27257] get_addresses results in traceback with an addrspec with an empty local part.

2020-02-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +18046 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/18687 ___ Python tracker

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

2020-02-28 Thread Antony Lee
Antony Lee added the comment: Decorating __new__ with lru_cache would likely run into memory leakage problems? (one would need a "weak lru_cache", I guess). I didn't know about the _closed attribute. From a quick look it appears to only be settable by using the path (not the actual file) as

[issue39784] Tuple comprehension

2020-02-28 Thread Marco Sulla
New submission from Marco Sulla : I think a tuple comprehension could be very useful. Currently, the only way to efficiently create a tuple from a comprehension is to create a list comprehension (generator comprehensions are more slow) and convert it with `tuple()`. A tuple comprehension wil

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

2020-02-28 Thread Chris Wilcox
Chris Wilcox added the comment: That is my thinking as well after rooting around a bit. I unfortunately am not knowledgable enough here to be 100% sure it is complete. -- ___ Python tracker

[issue37266] Daemon threads must be forbidden in subinterpreters

2020-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: There will be a problem with `concurrent.futures.ProcessPoolExecutor`, which currently launches its management thread as a daemon thread. The daemon thread itself is not problematic, because ProcessPoolExecutor uses an atexit hook to shutdown itself and the

[issue37266] Daemon threads must be forbidden in subinterpreters

2020-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps the solution would be to have an additional kind of atexit hooks, which get executed before threads are joined. -- nosy: +ncoghlan ___ Python tracker __

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

2020-02-28 Thread fireattack
New submission from fireattack : STR 1. Install both Py2 and 3. 2. Make sure Py3 is the default. 3. (Optional) Make sure only Python3 is in path, not Python2. Run the following script from CMD: ``` #!/usr/bin/python import platform print(platform.python_version()) ``` What expected: 3.8.1

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

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

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

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

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

[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 miss-islington
Change by miss-islington : -- pull_requests: +18048 pull_request: https://github.com/python/cpython/pull/18689 ___ Python tracker ___ __

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

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

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

[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 ___ ___ Python-bugs-lis

[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

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

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

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

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

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

[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

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

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

[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 https://github.com/python/c

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

[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

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

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

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

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

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

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

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

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

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

[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: https://mai

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

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

[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

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

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

[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

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

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

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

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

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

[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? https://github.com/python/cpython-source-deps/pull/

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

[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: Sorry, the Gmail web is correctly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

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

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

[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

[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

[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} print(len(unique_pa

[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

[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

[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 PC/crtlicense.txt

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

[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

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

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

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

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

  1   2   >