[issue31990] Pickling deadlocks in thread with python -m

2020-11-30 Thread Werner Smidt
Change by Werner Smidt : -- status: pending -> open Removed file: https://bugs.python.org/file47255/testqueuepickle.py ___ Python tracker ___ __

[issue31990] Pickling deadlocks in thread with python -m

2020-11-30 Thread Werner Smidt
Werner Smidt added the comment: The condition still stands. if I execute: python3 testqueuepickle3.py Everything is fine. If, however I execute: python3 -m testqueuepickle3.py It hangs. -- versions: +Python 3.8 ___ Python tracker

[issue42515] Devguide recommend against using PRs to update fork

2020-11-30 Thread Mariatta
Mariatta added the comment: No need to feel embarrassed about it :) I've made similar mistake in the past. Sounds good to rename the "Syncing with Upstream" section with "Updating your CPython fork". If you can open an issue in github.com/python/devguide, that would be great. We can continu

[issue31990] Pickling deadlocks in thread with python -m

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Which system are seeing this on? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue42501] Improve error messages for argparse choices using enum

2020-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset aab93903347ec6d7f23dda2994dd26f6111d19d2 by Miss Islington (bot) in branch '3.9': bpo-42501: Revise the usage note for Enums with the choices (GH-23563) (GH-23573) https://github.com/python/cpython/commit/aab93903347ec6d7f23dda2994dd26f6111

[issue42501] Improve error messages for argparse choices using enum

2020-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: +Documentation -Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28468] Add platform.freedesktop_os_release()

2020-11-30 Thread STINNER Victor
STINNER Victor added the comment: Matthias Klose: > It doesn't make sense to blacklist whole distributions in tests. Adding freedesktop_os_release() and using it are two different topics. I understand the the SC decision is on adding the function. Using it to skip tests should be decided on

[issue28468] Add platform.freedesktop_os_release()

2020-11-30 Thread STINNER Victor
STINNER Victor added the comment: > In this case, please also provide a way to provide the value of the > VERSION_ID field. I'm not sure what you mean. PR 23492 exposes the whole content of the os-release file as a dict. There is no special case for any field. VERSION_ID can be retrieved as

[issue28468] Add platform.freedesktop_os_release()

2020-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5c73afc36ee6cca41009a510092e1f901c5dc0a0 by Christian Heimes in branch 'master': bpo-28468: Add platform.freedesktop_os_release() (GH-23492) https://github.com/python/cpython/commit/5c73afc36ee6cca41009a510092e1f901c5dc0a0 --

[issue28468] Add platform.freedesktop_os_release()

2020-11-30 Thread STINNER Victor
STINNER Victor added the comment: I merged Christian's PR 23492. The initial issue, add a function to parse the os-release file, is now solved, so I close the issue. If you want to use it in a test, please open a new issue. Thanks everyone for this constructive discussion, IMO the final merg

[issue28468] Add platform.freedesktop_os_release()

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

[issue31904] Python should support VxWorks RTOS

2020-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1244c816d7cdfa8a26d1671cab67122a8c5271a7 by pxinwr in branch 'master': bpo-31904: Support signal module on VxWorks (GH-23391) https://github.com/python/cpython/commit/1244c816d7cdfa8a26d1671cab67122a8c5271a7 -- ___

[issue42516] Add function to get caller's name

2020-11-30 Thread Steve Dower
New submission from Steve Dower : We have a lot of stdlib code that looks like: try: nm_tpl.__module__ = sys._getframe(2).f_globals.get('__name__', '__main__') except (AttributeError, ValueError): pass While technically it handles sys._getframe being missing, it would

[issue42516] Add function to get caller's name

2020-11-30 Thread Steve Dower
Change by Steve Dower : -- components: +Interpreter Core stage: -> test needed type: -> enhancement versions: +Python 3.10 ___ Python tracker ___

[issue42516] Add function to get caller's name

2020-11-30 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42517] Enum: do not convert private names into members

2020-11-30 Thread Ethan Furman
New submission from Ethan Furman : Currently, private names such as '__location' will get both name mangled and converted into an attribute, while `__location_` will get mangled, but not converted as the final name is sundered (e.g. `_MyEnum__location_`). Just in case anyone is actually using

[issue42508] macOS IDLE with Tk 8.6.10 in 3.9.1rc1 universal2 installer fails smoke test

2020-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: After hours of failure to understand crazy 'impossible' behavior, I went back to 'timing issue' and this code. def run_module_event(self, event): if macosx.isCocoaTk(): # Tk-Cocoa in MacOSX is broken until at least # Tk 8.5

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

2020-11-30 Thread miss-islington
miss-islington added the comment: New changeset b2652f2d7e1f3b868e9bec6669b3f3f905257991 by Miss Islington (bot) in branch '3.9': bpo-42370: Check element before making mouse click in ttk tests (GH-23491) https://github.com/python/cpython/commit/b2652f2d7e1f3b868e9bec6669b3f3f905257991

[issue42508] macOS IDLE with Tk 8.6.10 in 3.9.1rc1 universal2 installer fails smoke test

2020-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ff51e5ec26168574761e128cc607b879d4d5aa50 by Miss Islington (bot) in branch '3.9': bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) (GH-23571) https://github.com/python/cpython/commit/ff51e5ec26168574761e128cc607b

[issue24295] Backport of #17086 causes regression in setup.py

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Python 2-only issue. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: The _searchbases function was removed here, when getmro was simplified following the removal of old style classes: https://github.com/python/cpython/commit/b82c8e5b27a8d8ec441aeab5d01d6d9bd8e6d7ef -- nosy: +iritkatriel resolution: -> out of date stage

[issue42507] test_ttk_guionly test failures on macOS with Tcl/Tk 8.6.10

2020-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no ideas. Try to add more calls of update() in these tests. -- ___ Python tracker ___ __

[issue24923] Append system paths in setup.py instead of prepending

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Fixed in Python 3 (in https://github.com/python/cpython/commit/807bd0a8a47191f7aa25cd9d5619bbc46a3f2a2a). Too late for 2.7. -- nosy: +iritkatriel resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue28931] urllib ignores FTP 226 response, breaking further FTP requests

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Fixed in Python 3, Python 2 past EOL. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue24775] Python client failing to connect to server but completing as if successful

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Python 2 is past its EOL. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue42508] macOS IDLE with Tk 8.6.10 in 3.9.1rc1 universal2 installer fails smoke test

2020-11-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +22456 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23577 ___ Python tracker ___ __

[issue42508] macOS IDLE with Tk 8.6.10 in 3.9.1rc1 universal2 installer fails smoke test

2020-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 23577 makes fix suggested above for easier review. -- stage: patch review -> ___ Python tracker ___ _

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22457 pull_request: https://github.com/python/cpython/pull/23578 ___ Python tracker _

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +22458 pull_request: https://github.com/python/cpython/pull/23579 ___ Python tracker ___ __

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-30 Thread miss-islington
miss-islington added the comment: New changeset 427613f005f0f412d12f0d775d2b609bae0ae1ad by Irit Katriel in branch 'master': bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) https://github.com/python/cpython/commit/427613f005f0f412d12f0d775d2b609bae0ae1ad

[issue42482] TracebackException should not hold reference to the exception traceback

2020-11-30 Thread miss-islington
miss-islington added the comment: New changeset 1cc5c943c007b92116f06b3ec8e71f2a510d1898 by Miss Islington (bot) in branch '3.8': bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) https://github.com/python/cpython/commit/1cc5c943c007b92116f06b3ec8e71f2a510d1898

[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-11-30 Thread Ken Jin
Ken Jin added the comment: FWIW, current code for extracting args type and return type from Callable seems to be something like this (at least from the typing module): arg_types = __args__[:-1] return_type = __args__[-1] Once ParamSpec is added in, library authors would need to check specifi

[issue41626] port shebang of tools from python2 to python3

2020-11-30 Thread hai shi
Change by hai shi : -- pull_requests: +22459 pull_request: https://github.com/python/cpython/pull/23581 ___ Python tracker ___ ___ P

[issue38200] Adding itertools.pairwise to the standard library?

2020-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset cc061d0e6fb2569efa91531686f75b89e94ec865 by Raymond Hettinger in branch 'master': bpo-38200: Add itertools.pairwise() (GH-23549) https://github.com/python/cpython/commit/cc061d0e6fb2569efa91531686f75b89e94ec865 -- _

[issue38200] Adding itertools.pairwise to the standard library?

2020-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2020-11-30 Thread Borhan Hafez
Change by Borhan Hafez : -- nosy: +zumoshi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2020-11-30 Thread Clint Allen
Clint Allen added the comment: I don't see anything further needed with this issue. Closing it is fine with me. -- status: pending -> open ___ Python tracker ___ ___

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2020-11-30 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue42518] Error Message

2020-11-30 Thread Kshitish
New submission from Kshitish : print (5 + 2 == 7 and 10 <= 1232 and 100 ^ 1000 >= 128) # Incorrect Output: True This argument should be false but it prints true. This is the logical error vulnerability. Try this code in another language too. You find out they print false because the argum

[issue42518] Error Message

2020-11-30 Thread Eric V. Smith
Eric V. Smith added the comment: This appears to be similar to issue42488, which it looks like you also reported, with a different account. It's not clear to me why you expect the output to be False. But in any event, this is not a bug in Python. >>> 100 ^ 1000 908 Please do not create iss

[issue42518] Error Message

2020-11-30 Thread Eryk Sun
Change by Eryk Sun : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue42518] Error Message

2020-11-30 Thread Eryk Sun
Change by Eryk Sun : -- components: -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

<    1   2