[issue22239] asyncio: nested event loop

2021-12-10 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44946] Integer operations are inefficient for "medium" integers.

2021-12-10 Thread Xinhang Xu
Change by Xinhang Xu : -- nosy: +xuxinhang nosy_count: 3.0 -> 4.0 pull_requests: +28270 pull_request: https://github.com/python/cpython/pull/30044 ___ Python tracker ___

[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The OP self-closed the PR. -- nosy: +rhettinger resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-10 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun
Eryk Sun added the comment: The code to copy a file could be rewritten to use a regex match. For example: # Copy src to dst. If src is a base executable, copy a launcher. dirname, filename = os.path.split(src) m =

[issue46013] Confusing period in object.__hash__ doc

2021-12-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +28269 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30043 ___ Python tracker

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : This page: https://docs.python.org/3/distutils/sourcedist.html Is the first result on google for "python sdist", but does not mention that all but tar.gz and zip are supported by PyPI. -- assignee: docs@python components: Documentation

[issue23469] Delete Misc/*.wpr files

2021-12-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: url: https://github.com/python/cpython/blob/main/Misc/python-wing5.wpr -- ___ Python tracker ___

[issue23469] Delete Misc/*.wpr files

2021-12-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since the files have effectively been abandoned, I think removing them should be considered now. The three files in /Misc, for wing-3, 4, and 5, are python-wing3.wpr python-wing4.wpr python-wing5.wpr The current version of Wing is 8.1.1. The files were

[issue13236] unittest needs more flush calls

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Serhiy! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue13236] unittest needs more flush calls

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d55a03e02e69fb7f639998de71ed3f44c2f4f999 by Miss Islington (bot) in branch '3.9': [3.10] bpo-13236: Flush the output stream more often in unittest (GH-29929) (GH-30039)

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9299e3a39c3b1dd7d5db0d88080249c2dab3070f by Miss Islington (bot) in branch '3.9': bpo-19737: Improved the documentation for globals (GH-29823) (GH-30042) https://github.com/python/cpython/commit/9299e3a39c3b1dd7d5db0d88080249c2dab3070f

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1f7000808e8385e2a29ffd0ef6aac9a6139d3d92 by Miss Islington (bot) in branch '3.10': bpo-19737: Improved the documentation for globals (GH-29823) (GH-30041) https://github.com/python/cpython/commit/1f7000808e8385e2a29ffd0ef6aac9a6139d3d92

[issue20559] urllib/http fail to sanitize a non-ascii url

2021-12-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9504] signal.signal/signal.alarm not working as expected

2021-12-10 Thread STINNER Victor
STINNER Victor added the comment: https://www.python.org/dev/peps/pep-0475/ changed deeply how Python handles signals. Python now tries to restart syscalls interrupted by signals (EINTR). A Python function only raises an exception if the Python signal handler raises an exception.

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Steve Dower
Steve Dower added the comment: We'd also need to update the launcher to launch the executable with its name, which it currently doesn't do. I was looking at this recently for some other reason. -- ___ Python tracker

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-10 Thread Steve Dower
Steve Dower added the comment: I'm going to need a decent amount of time to learn all of these components, because I never use this OS, Tox, nor virtualenv :) I'll try and get to it, but don't hold your breath. Luckily, Modules/getpath.py is much easier to follow and modify than the old

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28268 pull_request: https://github.com/python/cpython/pull/30042 ___ Python tracker ___

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28267 pull_request: https://github.com/python/cpython/pull/30041 ___ Python tracker

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4fe5585240f64c3d14eb635ff82b163f92074b3a by 180909 in branch 'main': bpo-19737: Improved the documentation for globals (GH-29823) https://github.com/python/cpython/commit/4fe5585240f64c3d14eb635ff82b163f92074b3a -- nosy: +lukasz.langa

[issue45822] Py_CompileString does not respect the coding cookie with the new parser if flags are empty

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5f622f1d5c5425ed1e992da6611edfb486a9bf7c by Miss Islington (bot) in branch '3.9': bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) (GH-29759) https://github.com/python/cpython/commit/5f622f1d5c5425ed1e992da6611edfb486a9bf7c

[issue45822] Py_CompileString does not respect the coding cookie with the new parser if flags are empty

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e1e3f648ad6ab467356d2d14e1d208583c1a76c6 by Miss Islington (bot) in branch '3.10': bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) (GH-29758) https://github.com/python/cpython/commit/e1e3f648ad6ab467356d2d14e1d208583c1a76c6

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7c5b01b5101923fc38274c491bd55239ee9f0416 by Miss Islington (bot) in branch '3.8': bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) (GH-29710)

[issue45929] extend json.tool --json-lines to ignore empty rows

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: I agree with Serhiy that in general the fact that json.tool crashes here is useful: similarly to an exception in Python code, it can inform the user that some data they feed to json.tool is invalid. At the same time, I find it a bit obnoxious that the current

[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: This is awesome! Should a note be added to the functools documentation mentioning the new feature? (Genuine question — I'm not sure whether it's necessary myself.) -- ___ Python tracker

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b593bdc7803cc75461f6fad03cb7d8dfc416 by Carl Friedrich Bolz-Tereick in branch 'main': bpo-37971: fix the position of decorator application (GH-30027) https://github.com/python/cpython/commit/b593bdc7803cc75461f6fad03cb7d8dfc416

[issue20559] urllib/http fail to sanitize a non-ascii url

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3 ___ Python tracker ___

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-12-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +28266 pull_request: https://github.com/python/cpython/pull/30040 ___ Python tracker

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 28179aac796ed1debdce336c4b8ca18e8475d40d by Weipeng Hong in branch 'main': bpo-42918: Improve build-in function compile() in mode 'single' (GH-29934) https://github.com/python/cpython/commit/28179aac796ed1debdce336c4b8ca18e8475d40d --

[issue13236] unittest needs more flush calls

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 83fa1291fd0a25216a4a9e990f423682fda67cbe by Serhiy Storchaka in branch '3.10': [3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) (GH-29929)

[issue13236] unittest needs more flush calls

2021-12-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +28265 pull_request: https://github.com/python/cpython/pull/30039 ___ Python tracker

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 98e506ae8a7997658a08fbf77ac016d200588cb3 by Petr Viktorin in branch 'main': bpo-43795: Document stable_abi.txt format and contents (GH-29956) https://github.com/python/cpython/commit/98e506ae8a7997658a08fbf77ac016d200588cb3 -- nosy:

[issue25834] getpass falls back when sys.stdin is changed

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Adam, do you have a suggestion what the check should be? -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- assignee: -> docs@python components: +Documentation -ctypes nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.8 ___

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8f3728edcbc205913772f8dc04cccd8bdc476ff4 by Miss Islington (bot) in branch '3.10': bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30037)

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f8eebb0db720cd81fb736d9cbfd16faf2ec68b53 by Miss Islington (bot) in branch '3.9': bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30038)

[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: Support added as an enhancement in Python 3.11. Thanks, Yurii! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3cb357a2e6ac18ee98db5d450414e773744e3c76 by Yurii Karabas in branch 'main': bpo-46014: Add ability to use typing.Union with singledispatch (GH-30017) https://github.com/python/cpython/commit/3cb357a2e6ac18ee98db5d450414e773744e3c76 --

[issue46043] Python Launcher Not Opening Files.

2021-12-10 Thread Nicholas Bond
New submission from Nicholas Bond : Python launcher opens its preferences and no terminal or Tkinter application opens. It appears as something was launched because for a fraction of a second, I see a window and then the icon glides back to its position on the desktop. However, python files

[issue9504] signal.signal/signal.alarm not working as expected

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I'm unable to reproduce this on 3.11 on a Mac. Has it been fixed? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue21459] DragonFlyBSD support

2021-12-10 Thread Thomas Klausner
Thomas Klausner added the comment: Not interested in this any longer, and Dragonfly's Dports doesn't carry this patch, so it's probably not needed any longer. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue31370] Remove support for threads-less builds

2021-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://web.dev/webassembly-threads/ suggests otherwise. -- ___ Python tracker ___ ___

[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner
Thomas Klausner added the comment: I must confess, I don't know. This patch has been in pkgsrc since at least the import of the first python 2.7 package in 2011, and I haven't dug deeper. If you think it is unnecessary, I'll trust you. I've just removed it from the python 3.10 package in

[issue27062] `inspect` doesn't have `__all__`

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27062] `inspect` doesn't have `__all__`

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 810c1769f1c24ed907bdf3cc1086db4e602a28ae by Kumar Aditya in branch 'main': bpo-27062: add `__all__` to inspect module (GH-30003) https://github.com/python/cpython/commit/810c1769f1c24ed907bdf3cc1086db4e602a28ae -- nosy: +lukasz.langa

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: New changeset 0fe104fce7da709edddb701baa2249e3275db1fd by Irit Katriel in branch 'main': bpo-45635: refactor print_exception_recursive into smaller functions to standardize error handling (GH-30015)

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28264 pull_request: https://github.com/python/cpython/pull/30038 ___ Python tracker ___

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28263 pull_request: https://github.com/python/cpython/pull/30037 ___ Python tracker

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c1051e08b3c6d9045322763876a4b0aea98d79f9 by Louis Sautier in branch 'main': bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) https://github.com/python/cpython/commit/c1051e08b3c6d9045322763876a4b0aea98d79f9

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I think this issue was resolved by now. This is what happens on 3.11: >>> l = ["abc", range(3)] >>> g = [(yield from i) for i in l] File "", line 1 SyntaxError: 'yield' inside list comprehension >>> g2 = ((yield from i) for i in l) File "", line 1

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the catch Carl! > I can try to fix this. Awesome, I will wait for the PR! -- ___ Python tracker ___

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40358] pathlib's relative_to should behave like os.path.relpath

2021-12-10 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: For the record, requested [on Discourse](https://discuss.python.org/t/how-to-go-on-with-a-tiny-improvement-idea-for-pathlib/12472) as well, with a fairly similar proposal. -- nosy: +CAM-Gerlach ___ Python tracker

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.11 -Python 3.8 ___ Python tracker ___

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : The error range for the "duplicate argument in function definition" SyntaxError is too large: $ cat x.py def f(a, b, c, d, e, f, g, a): pass $ python x.py File "/home/cfbolz/projects/cpython/x.py", line 1 def f(a, b, c, d, e, f, g, a):

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun
Eryk Sun added the comment: The Windows implementation of symlink_or_copy() actually copies "python.exe" and "pythonw.exe" launchers from "Lib/venv/scripts/nt". One cannot simply copy the "python3.exe" executable because the required DLLs aren't copied. If this seemed to work when testing,

[issue766910] fix one or two bugs in trace.py

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +ajaksu2 versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7 ___ Python tracker ___

[issue1182143] making builtin exceptions more informative

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2021-12-10 Thread Daniel Diniz
Daniel Diniz added the comment: As Victor notes, this is a controversial issue. And I'll add that the need for this feature seems not to have been brought up up in over a decade. So I'm closing this. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed

[issue18636] mingw: setup _ssl module

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22714] target of 'import statement' entry in general index for 'i' is wrong

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: related: https://www.python.org/dev/peps/pep-0490/ (rejected pep to auto-chain from C API calls) I don't come across it often, but I did just review some code at work today where the chain might have been nice (though not a big deal). -- nosy:

[issue41248] Python manual forced in maximized window

2021-12-10 Thread Mischiew Rithe
Mischiew Rithe added the comment: The problem still exists in version 3.10.1, in Windows. When the user wants to get the documentation, the whole screen is hidden by it, which is very inconvenient. If the user does not want this behaviour, they have to change the shortcut, for instance in:

[issue31370] Remove support for threads-less builds

2021-12-10 Thread Brett Cannon
Brett Cannon added the comment: This has unfortunately turned out to be a blocker on getting WASI support as there's not direct threading support in WebAssembly. -- nosy: +brett.cannon ___ Python tracker

[issue39425] list.count performance regression

2021-12-10 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- nosy: +tekknolagi nosy_count: 5.0 -> 6.0 pull_requests: +28262 pull_request: https://github.com/python/cpython/pull/30036 ___ Python tracker

[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- keywords: +patch pull_requests: +28261 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30036 ___ Python tracker

[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : Avoid reference counting in the fast path of list.contains and list.index -- messages: 408242 nosy: tekknolagi priority: normal severity: normal status: open title: Add reference counting micro-optimizations to listobject.c

[issue21461] Recognize -pthread

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: Python's configure script should detect when a platform needs -pthread and automatically include the flags for linking and compiling of all files. Under which circumstances do you need -pthread in a Setup file? --

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-10 Thread Stanislav Syekirin
New submission from Stanislav Syekirin : https://docs.python.org/3.10/library/asyncio-task.html#generator-based-coroutines This page says about asyncio.coroutine: Deprecated since version 3.8, removed in version 3.10 However, asyncio.coroutine is still working in 3.10 and has been

[issue21178] doctest cause warnings in tests using generators

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner
Thomas Klausner added the comment: gcc supports this flag. According to the man page: This option consistently for both compilation and linking. This option is supported on GNU/Linux targets, most other Unix derivatives, and also on x86 Cygwin and MinGW targets. On NetBSD, using -pthread

[issue17024] cElementTree calls end() on parser taget even if start() fails

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: This test passes on 3.11 (on a Mac). -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue21461] Recognize -pthread

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: Which platforms or compilers use -pthread? -- components: +Build -Extension Modules nosy: +christian.heimes versions: +Python 3.11 -Python 3.5 ___ Python tracker

[issue45654] Freeze the runpy module.

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 16638a4bdb802ae52d386a39d2dbef14de3fbc92 by Christian Heimes in branch 'main': bpo-45654: No need to freeze types (GH-30028) https://github.com/python/cpython/commit/16638a4bdb802ae52d386a39d2dbef14de3fbc92 --

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset bad16f0cf71a6b11ef62f86be6b3d3567cd70a16 by Miss Islington (bot) in branch '3.9': [3.9] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30033)

[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46039] Break up the YIELD_FROM instruction.

2021-12-10 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +28260 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30035 ___ Python tracker ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset bb8d645f3a09645686cf8f66bd46dcfa4efac713 by Miss Islington (bot) in branch '3.10': [3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30034)

[issue46039] Break up the YIELD_FROM instruction.

2021-12-10 Thread Mark Shannon
New submission from Mark Shannon : The YIELD_FROM instruction does three things: * It sends a value to the sub-iterator * It yields the value from the sub-iterator back up to its caller * Loops back on itself So we should implement this as: SEND<--+ YIELD_VALUE| JUMP_ABSOLUTE -+

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2021-12-10 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Mitchell Hentges
Mitchell Hentges added the comment: That's great, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Roy Smith
Roy Smith added the comment: It's nice to see this is still being worked on after all these years :-) I'm not actually convinced the proposed fix makes sense. It swaps out one incorrect behavior for a different incorrect behavior. If it really is more effort than it's worth to fix this

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: *3.8, I meant. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: 3.10 and 3.9 - OK, but 3. is security fixes only, I'm afraid. -- ___ Python tracker ___ ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28259 pull_request: https://github.com/python/cpython/pull/30034 ___ Python tracker ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28258 pull_request: https://github.com/python/cpython/pull/30033 ___ Python tracker

[issue24338] In argparse adding wrong arguments makes malformed namespace

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: >From the discussion and "rejected" resolution it looks like the intention was >to close this issue. I will do that soon if nobody objects. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue15125] argparse: positional arguments containing - in name not handled well

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue45582] Rewrite getpath.c in Python

2021-12-10 Thread Steve Dower
Steve Dower added the comment: New changeset 3f398a77d37b5dfd51dabbc362d482a482fa885a by neonene in branch 'main': bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014) https://github.com/python/cpython/commit/3f398a77d37b5dfd51dabbc362d482a482fa885a --

[issue28609] argparse claims '*' positional argument is required in error output

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. >>> parser.parse_args([]) usage: [-h] [-V] COMMAND [ARGUMENT ...] : error: the following arguments are required: COMMAND, ARGUMENT -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5

[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner
Change by Thomas Klausner : -- pull_requests: +28257 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30032 ___ Python tracker ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Mitchell Hentges
Mitchell Hentges added the comment: Hey, can I request a backport of this change? For my use case, 3.9+ would be great, but going back to 3.7 should be viable? I trust your judgement :) I'll happily create the PRs for the backport, but it looks like the bug has to be indicated as "needs

[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Adding a space as Paul suggests works. I'll close this soon if nobody objects. -- nosy: +iritkatriel resolution: -> wont fix status: open -> pending ___ Python tracker

[issue16807] argparse group nesting lost on inheritance

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> argparse.ArgumentParser(add_help=False, parents=[parent]).print_help() usage: [--foo FOO] [-a | -b] options: -a -b the group: --foo FOO -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7,

[issue34628] urllib.request.urlopen fails when userinfo is present in URL

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue31768] argparse drops '|'s when the arguments are too long

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: In 3.11 the problem is still there, but the cutoff to make Eric's script show it is now 26 rather than 8: % ./python.exe tt.py 25 usage: tt.py [-h] [-v | -q | -x [X] | -y [Y] | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z

[issue22047] argparse improperly prints mutually exclusive options when they are in a group

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11: % ./python.exe tt.py -h usage: tt.py [-h] [[-hello]] options: -h, --help show this help message and exit -hello A flag -- nosy: +iritkatriel status: open -> pending

  1   2   >