[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: Another option for code using Python <3.11, that will work without the `from __future__ import annotations` import, is to do something like this: ``` from graphlib import TopologicalSorter x: 'TopologicalSorter[str]' = TopologicalSorter({"a": {}, "b": {"a"}}) `

[issue46031] add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE

2021-12-10 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: https://github.com/faster-cpython/ideas/discussions/154 -- components: Interpreter Core messages: 408178 nosy: penguin_wwy priority: normal severity: normal status: open title: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE type: perfor

[issue46031] add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE

2021-12-10 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +28243 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30019 ___ Python tracker __

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Kumar Aditya
New submission from Kumar Aditya : functools' singledispatch does not support GenericAlias ```py from functools import singledispatch @singledispatch def func(x): print("any") @func.register def _(x: list[str]): print("list[str]") func(["a", "b"]) ``` -- components: Librar

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

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: Commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7 has correct _base_executable $ venv/bin/python Python 3.11.0a2+ (heads/bpo-45847-simple-115-g9f2f7e42269:9f2f7e42269, Dec 10 2021, 10:09:54) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux Type "help", "copy

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: My opinion is that supporting `GenericAlias` here would be a bad idea. Associating an implementation of the function with the argument type `list[str]` is ambiguous. Would this implementation be called if any argument of type `list` was supplied, or would it o

[issue45773] Compiler hangs during jump elimination

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

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8c74713d0e349c27518080945d5f040dfd52a56e by andrei kulakov in branch 'main': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384) https://github.com/python/cpython/commit/8c74713d0e349c27518080945d5f040dfd52a56

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

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

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

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

[issue45779] multiprocessing initializer error with CPython 3.9.6 on Apple Silicon

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

[issue46000] NetBSD curses compatibility

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

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a by Thomas Klausner in branch 'main': bpo-46000: Improve NetBSD curses compatibility (GH-29947) https://github.com/python/cpython/commit/2fb797e93c6bbd44dfcbe23f63acfa240a87e48a -- ___

[issue46000] NetBSD curses compatibility

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

[issue15757] ./configure --with-pydebug on FreeBSD results in -O2 -pipe eventually ending up in CFLAGS.

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

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fb8aad16401e081a6a9059c7b428f7e8aae85d58 by Miss Islington (bot) in branch '3.9': [3.9] bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) (GH-29924) https://github.com/python/cpython/commit/fb8aad16401e081a

[issue13473] Add tests for files byte-compiled by distutils

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

[issue45662] Incorrect repr of InitVar of a type alias

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

[issue14336] Difference between pickle implementations for function objects

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

[issue28559] Unclear error message when raising wrong type of exceptions

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ __

[issue41702] Inconsistent behaviour in strftime

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

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

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

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread miss-islington
miss-islington added the comment: New changeset 64c2788f42c49c7094d3b6e5404fe8386a2b4779 by Miss Islington (bot) in branch '3.10': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384) https://github.com/python/cpython/commit/64c2788f42c49c7094d3b6e5404fe8386a2

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread miss-islington
miss-islington added the comment: New changeset 40d765260ae08d152ee89ed9c1c621f4a0024fa6 by Miss Islington (bot) in branch '3.9': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384) https://github.com/python/cpython/commit/40d765260ae08d152ee89ed9c1c621f4a002

[issue46000] NetBSD curses compatibility

2021-12-10 Thread miss-islington
miss-islington added the comment: New changeset bb76410824e526ee075eac22812a577cca7583cf by Miss Islington (bot) in branch '3.10': bpo-46000: Improve NetBSD curses compatibility (GH-29947) https://github.com/python/cpython/commit/bb76410824e526ee075eac22812a577cca7583cf --

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-10 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: @rhettinger Apologies. You're totally right but I wasn't expecting this to become a lengthy conversation. So, to get closer to the initial issue, I believe that this ticket could be closed provided that the documentation is improved by making developers

[issue46033] Duplicated sentence in for statement documentation

2021-12-10 Thread Michał D
New submission from Michał D : In for statement description, there seem to be two sentences meant to mean the same: > The suite is then executed once for each item provided by the iterator, in > the order returned by the iterator. Each item in turn is assigned to the > target list using the s

[issue45723] Improve and simplify configure.ac checks

2021-12-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28248 pull_request: https://github.com/python/cpython/pull/30024 ___ Python tracker ___ ___

[issue46033] Duplicated sentence in for statement documentation

2021-12-10 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +28249 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30025 ___ Python tracker _

[issue46030] socket module add couple of FreeBSD constants

2021-12-10 Thread David CARLIER
Change by David CARLIER : -- nosy: +devnexen -dcarlier ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 040f9f9c48f4e74e851d850275aa9e050a04d0c6 by Miss Islington (bot) in branch '3.9': bpo-46000: Improve NetBSD curses compatibility (GH-29947) (GH-30023) https://github.com/python/cpython/commit/040f9f9c48f4e74e851d850275aa9e050a04d0c6

[issue45723] Improve and simplify configure.ac checks

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 74b23c97cd5e178970a199066795cf0561f46b72 by Erlend Egeberg Aasland in branch 'main': bpo-45723: Normalise configure user communication (GH-30024) https://github.com/python/cpython/commit/74b23c97cd5e178970a199066795cf0561f46b72 -- _

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: The plot thickens. I was wrong to say that type() always and only looks at the "real" underlying type of the instance. type() does look at __class__ as well. But only sometimes. >>> class A: ... __class__ = int ... >>> type(A()) >>> a = A() >>> a.__cl

[issue46033] Duplicated sentence in for statement documentation

2021-12-10 Thread Vedran Čačić
Vedran Čačić added the comment: How about adding the words "More precisely," at the beginning of the second sentence? -- nosy: +veky ___ Python tracker ___ ___

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Thomas for your contribution. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11, Python 3.9 ___ Python tracker _

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

2021-12-10 Thread Ned Batchelder
Ned Batchelder added the comment: git bisect also identifies that commit as the first bad: 99fcf1505218464c489d419d4500f126b6d6dc28 is the first bad commit commit 99fcf1505218464c489d419d4500f126b6d6dc28 Author: Steve Dower Date: Fri Dec 3 00:08:42 2021 + bpo-45582: Port getpath[p

[issue40821] os.getlogin() not working

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

[issue46034] Patch-adding __init__ in a class takes no effect when called from a subinterpreter

2021-12-10 Thread Miro Hrončok
New submission from Miro Hrončok : Hello, based on some bug reports reported in: - https://github.com/GrahamDumpleton/mod_wsgi/issues/729 - https://github.com/poljar/weechat-matrix/issues/293 - https://bugzilla.redhat.com/show_bug.cgi?id=2030621 I have isolated the following reproducer that sh

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2021-12-10 Thread milahu
New submission from milahu : deprecated mimetype? per rfc4329, the technical term is "unregistered media type" https://datatracker.ietf.org/doc/html/rfc4329#section-3 related https://stackoverflow.com/a/9664327/10440128 https://github.com/danny0838/PyWebScrapBook/issues/53 quick fix ```py

[issue45723] Improve and simplify configure.ac checks

2021-12-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28251 pull_request: https://github.com/python/cpython/pull/30026 ___ Python tracker ___ ___

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2021-12-10 Thread milahu
milahu added the comment: patch https://github.com/milahu/cpython/commit/8a50633bb1b0c3e39fbe2cd467bb34a839ad068f -- ___ Python tracker ___ __

[issue46034] Patch-adding __init__ in a class takes no effect when called from a subinterpreter

2021-12-10 Thread Miro Hrončok
Miro Hrončok added the comment: git bisect gives: https://github.com/python/cpython/commit/ea251806b8d11b30d2182af1e589caf88acf -- ___ Python tracker ___ _

[issue46034] Patch-adding __init__ in a class takes no effect when called from a subinterpreter

2021-12-10 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-46006. It's not exactly the same issue, but the root cause is the same: in some functions, Python use fast pointer comparisons when two strings are interned, but this now fails if two interned strings belong to two dif

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-10 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-46034 as a duplicate: setting a class "__init__" attribute doesn't update properly its tp_init slot. update_slot() of Objects/typeobject.c only uses a fast pointer comparison since both strings are interned, but the test fails if the two strings

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-10 Thread STINNER Victor
STINNER Victor added the comment: Attachd cmp_interned_strings.patch fix _PyUnicode_EqualToASCIIId() and update_slot() for subinterpreters. I will create a PR once we agree if it's required to support subinterpreters there, and if there is no better (faster) option. For update_slot(), one o

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

2021-12-10 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: I ran into this problem in PyPy today, preparing a patch for CPython too (without looking at the old one). -- nosy: +Carl.Friedrich.Bolz ___ Python tracker ___

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

2021-12-10 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- pull_requests: +28252 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30027 ___ Python tracker ___ _

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +3.10regression nosy: +pablogsal priority: normal -> release blocker ___ Python tracker ___

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: It would be well worth it to improve the error message, however: ``` >>> from functools import singledispatch >>> @singledispatch ... def func(arg): ... raise NotImplementedError ... >>> @func.register ... def _(arg: list[str]): ... print('Got a list of

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: The above traceback is because the `isinstance(list[str], type)` check at Lib/functools.py:848 evaluates to `True`. Related: #45665. -- ___ Python tracker ___

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

2021-12-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, seems my original hunch is correct. Steve, could you take a look when you have some time? -- ___ Python tracker ___ _

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: #46032 is related to this issue. -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list

[issue46023] Modules/makesetup generated rules ignore *disabled*

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 036bbb1d1b6156a1a72c40e9f907f302505085bc by Christian Heimes in branch 'main': bpo-46023: Fix makesetup handling of disabled rule (GH-30001) https://github.com/python/cpython/commit/036bbb1d1b6156a1a72c40e9f907f302505085bc -- __

[issue46036] Single-phase initialized modules gets initialized multiple times in 3.10.0

2021-12-10 Thread Daniel
New submission from Daniel : The documentation (https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreter) states: For modules using single-phase initialization, e.g. PyModule_Create(), the first time a particular extension is imported, it is initialized normally, and a (shallow) copy of

[issue45654] Freeze the runpy module.

2021-12-10 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 4.0 -> 5.0 pull_requests: +28253 pull_request: https://github.com/python/cpython/pull/30028 ___ Python tracker _

[issue45654] Freeze the runpy module.

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: I noticed that the types module is only used for ModuleType. PR GH-30028 gets rid of 205 kB object code: 205K Python/deepfreeze/types.o -- ___ Python tracker ___

[issue45723] Improve and simplify configure.ac checks

2021-12-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28254 pull_request: https://github.com/python/cpython/pull/30029 ___ Python tracker ___ ___

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +functools' singledispatch does not support GenericAlias ___ Python tracker ___ ___ Py

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: -functools' singledispatch does not support GenericAlias ___ Python tracker ___ ___ P

[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-10 Thread Jacob Hayes
Jacob Hayes added the comment: Thanks for the tips! I've been using this patch in my own code in a early imported `__init__.py`: ``` from graphlib import TopologicalSorter from types import GenericAlias if not hasattr(TopologicalSorter, "__class_getitem__"): # pragma: no cover Topologic

[issue46029] "ValueError: Invalid isoformat string" from a valid string

2021-12-10 Thread Eric V. Smith
Eric V. Smith added the comment: fromisoformat() is only designed to parse the output of isformat(). See issue 35829 for further discussion. I'm going to close this issue as a duplicate. -- nosy: +eric.smith resolution: -> duplicate stage: -> resolved status: open -> closed superse

[issue46024] Different behaviour with zipfile

2021-12-10 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-10 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30718] [doc] open builtin function: specifying the size of buffer has no effect for text files

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation -Interpreter Core keywords: +easy nosy: +docs@python title: open builtin function: specifying the size of buffer has no effect for text files -> [doc] open builtin function: specifying the size of buffer h

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue45653] Freeze the encodings module.

2021-12-10 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 5.0 -> 6.0 pull_requests: +28255 pull_request: https://github.com/python/cpython/pull/30030 ___ Python tracker _

[issue16977] argparse: mismatch between choices parsing and usage/error message

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: We could make the error message less wrong: >>> p.parse_args(['d']) usage: [-h] {a,b,c} : error: argument a: invalid choice: 'd' (choose a value in 'abc') % git diff diff --git a/Lib/argparse.py b/Lib/argparse.py index b44fa4f0f6..f03cc1f110 100644 --- a/Lib/

[issue18349] argparse usage should preserve () in metavars such as range(20)

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser.add_argument('foo', type=int, choices=range(20), >>> metavar='range(0,20)') _StoreAction(option_strings=[], dest='foo', nargs=None, const=None, default=None, type=, choic

[issue11708] argparse: suggestion for formatting optional positional args

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue23994] argparse fails to detect program name when there is a slash at the end of the program's path

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this problem on 3.11 on a Mac. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___ __

[issue46037] logging.config.dictConfig with disable_existing_loggers set, also disables loggers in configuration

2021-12-10 Thread vladmihaisima
New submission from vladmihaisima : When invoking logging.config.dictConfig - if a logger was previously disabled (for example by a call to "logging.config.dictConfig({'version': 1})") - the loggers specified in the dictionary will not be enabled. Documentation at https://docs.python.org/3/li

[issue17890] argparse: mutually exclusive groups full of help-suppressed args can cause AssertionErrors

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I'm unable to reproduce this problem on 3.11: >>> import argparse >>> parser = argparse.ArgumentParser() >>> group = parser.add_mutually_exclusive_group() >>> group.add_argument('--spam', help=argparse.SUPPRESS) _StoreAction(option_strings=['--spam'], dest='spam

[issue46038] Mark /configure file as generated in .gitattributes

2021-12-10 Thread Oleg Iarygin
New submission from Oleg Iarygin : configure is regenerated from configure.ac using a custom container with appropriate version of tools (quay.io/tiran/cpython_autoconf by Christian Heimes). As a result, configure falls into the same category as files generated by Argument Clinic, Freeze and

[issue46038] Mark /configure file as generated in .gitattributes

2021-12-10 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +28256 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30031 ___ Python tracker ___ ___

[issue28841] urlparse.urlparse() parses invalid URI without generating an error (examples provided)

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> urllib.parse.urlparse('http://www.google.com:/abc') ParseResult(scheme='http', netloc='www.google.com:', path='/abc', params='', query='', fragment='') The discussion above was mostly leaning towards won't fix, except for the suggesti

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

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

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

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

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

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

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

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

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

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

[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

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

[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 Vinay Sajip
Vinay Sajip added the comment: 3.10 and 3.9 - OK, but 3. is security fixes only, I'm afraid. -- ___ Python tracker ___ ___ Python-b

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

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

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

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

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

[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) https://github.com/python/cpython/commit/bb8d645f3a09645686cf8f66bd4

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

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

[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) https://github.com/python/cpython/commit/bad16f0cf71a6b11ef62f86be6b3d

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

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

  1   2   >