[issue40691] misleading output from difflib unified_diff

2020-05-19 Thread Chris Danis
New submission from Chris Danis : When difflib.unified_diff is asked to produce a diff of inputs a.txt and b.txt (attached), with 10 context lines, it produces the following: --- codfw/groupLoadsBySection live +++ codfw/groupLoadsBySection generated @@ -90,37 +90,31 @@ }, "s4": {

[issue40691] misleading output from difflib unified_diff

2020-05-19 Thread Chris Danis
Change by Chris Danis : Added file: https://bugs.python.org/file49172/b.txt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-05-19 Thread Tal Einat
Tal Einat added the comment: Indeed, adding a simple _tkinter.destroy() method which invokes Tcl_Finalize, and calling it in the Tk.destroy() method, makes copied text remain available after closing IDLE! I did the above to test my hypothesis, but I'm not sure it would be a proper fix. ---

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-05-19 Thread Tal Einat
Tal Einat added the comment: epaine, if you'd like to create a new PR based on these findings, I'd be happy to review it! -- ___ Python tracker ___ __

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2020-05-19 Thread Asheesh Laroia
New submission from Asheesh Laroia : Some parts of test_concurrent_futures make sense to run even on Python builds where multiprocessing.synchronize is absent. At the moment, test_concurrent_futures.py skips all tests in the file if multiprocessing.synchronize is missing from the Python build

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: After reporting my experiments above, msg369334, I made further failing efforts to simulate pasting into another process, as in 3 and 4. It might be that a concrete key event is needed. So I strongly suspect that the solution for IDLE is indeed a tkinter s

[issue40682] random.Random.seed() with version=1 does not consistently match Python 2 behavior

2020-05-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: 3.5 and 3.6 are now only accepting security fixes. Only the stability of random.random is guaranteed across versions, but you are calling randrange: https://docs.python.org/3/library/random.html#notes-on-reproducibility So I am pretty sure that this will n

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2020-05-19 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +19527 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20239 ___ Python tracker _

[issue40667] [Windows] Add global python and python3 commands

2020-05-19 Thread Steve Dower
Steve Dower added the comment: > To avoid this, process() can set a flag based on the image name that prevents > calling maybe_handle_shebang(). Or the other solution, which is stop treating "usr/bin/env" as "search PATH" - I'm sure there's another issue open somewhere saying this is the be

[issue38870] Expose ast.unparse in the ast module

2020-05-19 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19528 pull_request: https://github.com/python/cpython/pull/20240 ___ Python tracker ___ _

[issue40684] make install doesn't respect configure --with-platlibdir=lib64

2020-05-19 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread Steve Dower
Steve Dower added the comment: New changeset 92327a9913150f5bb55b2727a2c5d50f9b7b6e55 by Steve Dower in branch 'master': bpo-39631: Adds NEWS entry (GH-20227) https://github.com/python/cpython/commit/92327a9913150f5bb55b2727a2c5d50f9b7b6e55 -- __

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +19530 pull_request: https://github.com/python/cpython/pull/20242 ___ Python tracker ___ __

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +19531 pull_request: https://github.com/python/cpython/pull/20243 ___ Python tracker ___ __

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +19529 pull_request: https://github.com/python/cpython/pull/20241 ___ Python tracker ___ __

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue38870] Expose ast.unparse in the ast module

2020-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +19532 pull_request: https://github.com/python/cpython/pull/20244 ___ Python tracker ___ __

[issue38870] Expose ast.unparse in the ast module

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset dd74b6fde31aff9aa46c4fc2a830c569764e1b63 by Batuhan Taskaya in branch 'master': bpo-38870: invalid escape sequence (GH-20240) https://github.com/python/cpython/commit/dd74b6fde31aff9aa46c4fc2a830c569764e1b63 -- ___

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset 67bbb5d4381b6121a4f61ba945c58056e5894846 by Miss Islington (bot) in branch '3.7': bpo-39631: Adds NEWS entry (GH-20227) https://github.com/python/cpython/commit/67bbb5d4381b6121a4f61ba945c58056e5894846 -- _

[issue39631] Fix file association MIME type on Windows

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset 381ceeaa5980643fa1f958f112f373d7a197e6e8 by Miss Islington (bot) in branch '3.8': bpo-39631: Adds NEWS entry (GH-20227) https://github.com/python/cpython/commit/381ceeaa5980643fa1f958f112f373d7a197e6e8 -- _

[issue40514] [subinterpreters] Add --experimental-isolated-subinterpreters build option

2020-05-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9512ad74b0fcaff023c1ade75313dc8e249aef78 by Victor Stinner in branch '3.9': [3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228) https://github.com/python/cpython/commit/9512ad74b0fcaff023c1ade75313dc8e249aef78

[issue38870] Expose ast.unparse in the ast module

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset 059279d8706074489144f6ba8ccc8723e0b85007 by Miss Islington (bot) in branch '3.9': bpo-38870: invalid escape sequence (GH-20240) https://github.com/python/cpython/commit/059279d8706074489144f6ba8ccc8723e0b85007 -- _

[issue40645] Use OpenSSL's HMAC API

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset aca4670ad695d4b01c7880fe3d0af817421945bd by Christian Heimes in branch 'master': bpo-40645: restrict HMAC key len to INT_MAX (GH-20238) https://github.com/python/cpython/commit/aca4670ad695d4b01c7880fe3d0af817421945bd -- nosy: +miss-is

[issue40645] Use OpenSSL's HMAC API

2020-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +19533 pull_request: https://github.com/python/cpython/pull/20245 ___ Python tracker ___ __

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-05-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19534 pull_request: https://github.com/python/cpython/pull/20246 ___ Python tracker ___ __

[issue40645] Use OpenSSL's HMAC API

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset 6ed37430d31e915103ab5decd14d757eb2d159d5 by Miss Islington (bot) in branch '3.9': bpo-40645: restrict HMAC key len to INT_MAX (GH-20238) https://github.com/python/cpython/commit/6ed37430d31e915103ab5decd14d757eb2d159d5 --

[issue40679] show class name in method invocation TypeError

2020-05-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks! I think it does. Also, I see now that using the __qualname__ is better than including the object's type for locating the method because you can have cases like super().foo() or even-- class A: def foo(self): pass def bar(): pass A.

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-05-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19535 pull_request: https://github.com/python/cpython/pull/20247 ___ Python tracker ___ __

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-05-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The #if 0 was added by Guido in 43ff8683fe68424b9c179ee4970bb865e11036d6 in 1998, before the tcl/tk clip fix for Windows. * Temporarily get rid of the registration of Tcl_Finalize() as a low-level Python exit handler. This can attempt to call Python code at

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-05-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0509c4547fc95cc32a91ac446a26192c3bfdf157 by Victor Stinner in branch 'master': bpo-40521: Fix update_slot() when INTERN_NAME_STRINGS is not defined (#20246) https://github.com/python/cpython/commit/0509c4547fc95cc32a91ac446a26192c3bfdf157

[issue32309] Implement asyncio.run_in_executor shortcut

2020-05-19 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: Python 3.9 release manager (Lukasz) approved adding the feature to Python 3.9.0 beta2: https://github.com/python/cpython/pull/20212#pullrequestreview-414278938 -- nosy: +vstinner versions: +Python 3.9 -Python 3.7

[issue40682] random.Random.seed() with version=1 does not consistently match Python 2 behavior

2020-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: The parts that are supposed to be stable are the seeding and the output of calls to random(). The sessions shown below show that this working as intended. The downstream algorithms such as randrange() are not protected by the reproducibility guarantees.

[issue40693] pathlib.Path will be broken with os.chdir command.

2020-05-19 Thread Y Ono
New submission from Y Ono : ``` import os from pathlib import Path os.chdir(Path(__file__).parent) print(Path(__file__).absolute()) ``` I put the code into a file in `/tmp/test.py`, and execute it from `/tmp/` directory like below. Then the output showed `/tmp/scripts/scripts/test.py`. ``` $

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-05-19 Thread Irv Kalb
Irv Kalb added the comment: If possible, I would like to raise the priority of this issue. I teach Python and I use IDLE every day. This bug makes using IDLE for teaching extremely difficult. Hopefully new information: I have just bought a new Mac, which is running Catalina (MacOS 10.15).

[issue40693] pathlib.Path will be broken with os.chdir command.

2020-05-19 Thread Y Ono
Y Ono added the comment: It's the same as when executing `os.path.abspath`. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40291] socket library support for CAN_J1939

2020-05-19 Thread Karl Ding
Change by Karl Ding : -- pull_requests: +19536 pull_request: https://github.com/python/cpython/pull/20248 ___ Python tracker ___ ___

[issue40291] socket library support for CAN_J1939

2020-05-19 Thread Karl Ding
Karl Ding added the comment: Should this be added to the What's New for 3.9? I see a smaller change that exposes the CAN_RAW_JOIN_FILTERS constant mentioned. I've created https://github.com/python/cpython/pull/20248 if this is needed. -- ___ Pytho

[issue40291] socket library support for CAN_J1939

2020-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +19537 pull_request: https://github.com/python/cpython/pull/20249 ___ Python tracker ___ __

[issue40291] socket library support for CAN_J1939

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset 550f30c8f33a2ba844db2ce3da8a897b3e882c9a by karl ding in branch 'master': bpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248) https://github.com/python/cpython/commit/550f30c8f33a2ba844db2ce3da8a897b3e882c9a -- __

[issue40291] socket library support for CAN_J1939

2020-05-19 Thread miss-islington
miss-islington added the comment: New changeset 12fa658d0565c6c53d25f464f29ef596a0df5e2a by Miss Islington (bot) in branch '3.9': bpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248) https://github.com/python/cpython/commit/12fa658d0565c6c53d25f464f29ef596a0df5e2a -- __

[issue40694] gen.throw() with multiple yield froms skips intermediate exceptions

2020-05-19 Thread Chris Jerdonek
New submission from Chris Jerdonek : Here is another gen.throw() exception chain example similar to the examples in issue 29587: https://bugs.python.org/issue29587 def f(): yield def g(): try: raise RuntimeError('a') except Exception as exc: print(f'handling: {exc!

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-05-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just filed a related issue to this that's also similar to issue 29587: https://bugs.python.org/issue40694 -- ___ Python tracker ___ ___

[issue40693] pathlib.Path will be broken with os.chdir command.

2020-05-19 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) nosy: +pitrou stage: -> needs patch type: -> behavior versions: +Python 3.7 ___ Python tracker ___ _

[issue39673] Map errno==ETIME to TimeoutError

2020-05-19 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +19538 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20253 ___ Python tracker

[issue39673] Map errno==ETIME to TimeoutError

2020-05-19 Thread Zackery Spytz
Change by Zackery Spytz : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue40693] pathlib.Path will be broken with os.chdir command.

2020-05-19 Thread Zachary Ware
Zachary Ware added the comment: I don't see anything broken here: `__file__` is "scripts/test.py", `Path(__file__).parent` is "scripts", and `__file__` doesn't change just because the working directory changed (it's a static string set at import time, which is only a relative path because yo

[issue40693] pathlib.Path will be broken with os.chdir command.

2020-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: https://stackoverflow.com/questions/7116889/is-module-file-attribute-absolute-or-relative and https://bugs.python.org/issue18416 might help explain behavior. I agree it's working as designed. -- nosy: +eric.smith _

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not really an IDLE issue; I only tagged it as such to make it easy for IDLE users to find. It might or not be a python-install Catalina-upgrade issue. It definitely is an Apple issue in that they care little for Python, nothing for tcl/tk, and rele

<    1   2