[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-01-20 Thread Arie Bovenberg
Arie Bovenberg added the comment: @hynek interesting! The discussion in https://github.com/python-attrs/attrs/pull/420 on the weakref slot is very interesting as well. Considering __weakref__ is something we don't want to make impossible in dataclasses, @eric.smith what would be your prefe

[issue46444] Wrong value of pi for larger values using math.cos() function

2022-01-20 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Darshan. This isn't a bug in Python. You're running into the limitations of floating-point arithmetic. There's a lot of good material on those limitations available on the web, starting with Python's own tutorial: https://docs.python.org/3/tutorial/float

[issue45834] Move runtime except: check to the parser

2022-01-20 Thread Irit Katriel
Irit Katriel added the comment: We decided on the PR that this is not worth doing. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue46437] Non-required `hasattr` checks in `test_typing`

2022-01-20 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41906] logging.config.dictConfig does not work with callable filters

2022-01-20 Thread Mario Corchero
Mario Corchero added the comment: Great! I'll put something together then. If you have any preference about the implementation or any pointer on the way you think should be done, please let me know. -- ___ Python tracker

[issue45767] Fix types for dev_t processing in posix module

2022-01-20 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue46444] Wrong value of pi for larger values using math.cos() function

2022-01-20 Thread Darshan Kanade
Darshan Kanade added the comment: Thanks Mark, for the explanation. I had no idea about how the floating point values are represented as binary fractions in the computer hardware. It was a very informative document. Thanks again! -- nosy: -serhiy.storchaka _

[issue37091] subprocess - uncaught PermissionError in send_signal can cause hang

2022-01-20 Thread Irit Katriel
Irit Katriel added the comment: I think this was fixed in Issue37424. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> subprocess.run timeout does not function if shell=True and capture_output=True ___ Python

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread sparrowt
sparrowt added the comment: Thanks, yes CLA should now be working its way through the system. I guess a side question is: is it expected for docstring to have been stripped from the windows embeddable distribution, and how is that done if not with -OO? (I found --without-doc-strings but not

[issue43474] http.server.BaseHTTPRequestHandler end_header() fails

2022-01-20 Thread Géry
Géry added the comment: > http.server.BaseHTTPRequestHandler end_headers() can reference _header_buffer > array before it is assigned. @grumblor I was about to open the same bug after reading the implementation of http.server this morning and noticing that the attribute _headers_buffer of Ba

[issue46400] Please update bundled libexpat to 2.4.3 with security fixes

2022-01-20 Thread thomgree
Change by thomgree : -- nosy: +thomgree ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue46409] Add a new bytecode instruction to create generators

2022-01-20 Thread Mark Shannon
Mark Shannon added the comment: New changeset b04dfbbe4bd7071d46c8688c2263726ea31d33cd by Mark Shannon in branch 'main': bpo-46409: Make generators in bytecode (GH-30633) https://github.com/python/cpython/commit/b04dfbbe4bd7071d46c8688c2263726ea31d33cd -- __

[issue46409] Add a new bytecode instruction to create generators

2022-01-20 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2022-01-20 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2022-01-20 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41906] logging.config.dictConfig does not work with callable filters

2022-01-20 Thread Vinay Sajip
Vinay Sajip added the comment: > If you have any preference about the implementation or any pointer Nothing particular, just try to fit in with the existing code conventions even where they don't follow modern idioms (e.g. a lot of the code in this package predates PEP 8 and new styles of st

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-20 Thread Akuli
Akuli added the comment: > I also think that keeping a status quo (ignoring the mapping attribute in > typing) is the lesser evil. Can you clarify this? There are several things that typing could do, and I don't know which option you are referring to. I listed most of them below, and I'd li

[issue46441] Caret points to wrong line on 'return yield 42' in REPL

2022-01-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28909 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30718 ___ Python tracker __

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: If you are ok with the proposed API in GH-30680, I'll mark it as ready for review. -- ___ Python tracker ___

[issue45767] Fix types for dev_t processing in posix module

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is device number -1 used in any context (for example as "unknown device number")? -- ___ Python tracker ___ __

[issue46339] PEG parser segfault from ast.literal_eval

2022-01-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 1fb1f5d8bd084c20f0a5fde547b563c08d103f09 by Miss Islington (bot) in branch '3.10': [3.10] bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529) (GH-30542) https://github.com/python/cpython/commi

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread Steve Dower
Steve Dower added the comment: See https://github.com/python/cpython/blob/b04dfbbe4bd7071d46c8688c2263726ea31d33cd/PC/layout/main.py#L256-L289 Basically, the .pyc files in the embeddable distro have been compiled with optimize=2, which is the equivalent of -OO. So yes, docstrings (and assert

[issue46339] PEG parser segfault from ast.literal_eval

2022-01-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread Petr Viktorin
Petr Viktorin added the comment: > Sharing objects between interpreters is bad That's your opinion, I don't necessarily share it. > and is causing complex bugs. But converting static things (types, small ints) to heap is also causing bugs :( Anyway, for this issue: is there a way to t

[issue46400] Please update bundled libexpat to 2.4.3 with security fixes

2022-01-20 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread sparrowt
sparrowt added the comment: Gottit thanks for explaining - so the existing check in `do_help` didn't catch this case because https://docs.python.org/3/library/sys.html#sys.flags only reflects command line flags, rather than whether or not it was actually optimised. -- _

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-20 Thread Steve Dower
Steve Dower added the comment: > the existing check in `do_help` didn't catch this case because > https://docs.python.org/3/library/sys.html#sys.flags only reflects command > line flags, rather than whether or not it was actually optimised. Precisely. Your check is much more appropriate for

[issue46441] Caret points to wrong line on 'return yield 42' in REPL

2022-01-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the bug report, Guido! Everything should be ok now -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46442] testExceptionCleanupNames doesn't test anything?

2022-01-20 Thread Eric V. Smith
Eric V. Smith added the comment: I don't know for sure, but maybe it's trying to test "del" interacting with the fact that the "as e" part doesn't escape the "except" clause, unlike normal assignments: >>> try: ... raise Exception ... except Exception as e: ... print('exception raise

[issue46445] Multiple inheritance of TypedDict is not covered in `test_typing`

2022-01-20 Thread Nikita Sobolev
New submission from Nikita Sobolev : Why is this important? 1. Because multiple inheritance of `TypedDict` might not handle `__required_keys__`, or `__optional_keys__`, or `__annotations__` correctly, this is especially important because some classes might be defined as `total=False` and some

[issue46445] Multiple inheritance of TypedDict is not covered in `test_typing`

2022-01-20 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue46445] Multiple inheritance of TypedDict is not covered in `test_typing`

2022-01-20 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28910 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30719 ___ Python tracker ___ _

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-20 Thread Steve Dower
Steve Dower added the comment: This configuration is intentional. When cross-compiling, tools that are executed as part of the build need to be built for the tool platform, not the target platform. -- nosy: +steve.dower resolution: -> not a bug stage: patch review -> resolved status

[issue46441] Caret points to wrong line on 'return yield 42' in REPL

2022-01-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya nosy_count: 3.0 -> 4.0 pull_requests: +28911 pull_request: https://github.com/python/cpython/pull/30720 ___ Python tracker ___ __

[issue46446] OpenBSD not MULTIARCH

2022-01-20 Thread Kurt Mosiejczuk
New submission from Kurt Mosiejczuk : Just like FreeBSD, MULTIARCH should not be passed to OpenBSD. Just add another line like done for FreeBSD -- components: Build messages: 411032 nosy: kmosiejczuk priority: normal severity: normal status: open title: OpenBSD not MULTIARCH type: comp

[issue46446] OpenBSD not MULTIARCH

2022-01-20 Thread Kurt Mosiejczuk
Change by Kurt Mosiejczuk : -- keywords: +patch pull_requests: +28912 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30721 ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: If tomorrow static types are shared between sub-interpreters, it doesn't solve this problem: we still need to release memory allocated by Py_Initialize() in Py_Finalize() when Python is embedded. This issue is a sub-set of the big bpo-1635741 which explains

[issue46441] Caret points to wrong line on 'return yield 42' in REPL

2022-01-20 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the quick fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue46429] Merge all deepfrozen files into one

2022-01-20 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset ef3ef6fa43d5cca072eed2a66064e818de583be7 by Kumar Aditya in branch 'main': bpo-46429: Merge all deepfrozen files into one (GH-30572) https://github.com/python/cpython/commit/ef3ef6fa43d5cca072eed2a66064e818de583be7 -- __

[issue45767] Fix types for dev_t processing in posix module

2022-01-20 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: > Is device number -1 used in any context (for example as "unknown device > number")? Yes, there's NODEV macro in both Linux and FreeBSD which expands to ((dev_t)-1). -- ___ Python tracker

[issue23325] Turn SIG_DFL and SIG_IGN into functions

2022-01-20 Thread Christian Heimes
Christian Heimes added the comment: Serhiy, could you please rebase your PR to tip of main branch? I'd like to try it out. -- nosy: +christian.heimes versions: +Python 3.11, Python 3.9 ___ Python tracker __

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-01-20 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28913 pull_request: https://github.com/python/cpython/pull/30722 ___ Python tracker ___

[issue43683] Handle generator (and coroutine) state in the bytecode.

2022-01-20 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +28914 pull_request: https://github.com/python/cpython/pull/30723 ___ Python tracker ___

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2022-01-20 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Mike's fix unfortunately didn't work out. What are the rules about closing old enhancement requests? modulefinder is an old and rarely used package, and I feel like the use case is better served by a PyPI package. -- nosy: +Jelle Zijlstra _

[issue46442] testExceptionCleanupNames doesn't test anything?

2022-01-20 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-01-20 Thread Christian Heimes
Christian Heimes added the comment: New changeset c02e860ee79f29905be6fca997c96bb1a404bb32 by Christian Heimes in branch 'main': bpo-40280: Misc fixes for wasm32-emscripten (GH-30722) https://github.com/python/cpython/commit/c02e860ee79f29905be6fca997c96bb1a404bb32 -- _

[issue46442] testExceptionCleanupNames doesn't test anything?

2022-01-20 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Perhaps it's testing that the implicit `del` doesn't blow up if the variable is already deleted. -- nosy: +Jelle Zijlstra ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-20 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28915 pull_request: https://github.com/python/cpython/pull/30725 ___ Python tracker ___ __

[issue31603] Please add argument to override stdin/out/err in the input builtin

2022-01-20 Thread Wren Turkal
Wren Turkal added the comment: I'm not sure that I ever got a definitive issue, but I didn't have time to push it forward. I still think the idea has merit. I'd love to see it implemented, but I don't have the time to pursue it right now. Thanks, wt On Mon, Jan 17, 2022 at 10:23 AM Irit Katri

[issue46316] Optimize pathlib.Path.iterdir()

2022-01-20 Thread Zachary Ware
Zachary Ware added the comment: New changeset a1c88414926610a3527398a478c3e63c531dc742 by Barney Gale in branch 'main': bpo-46316: optimize `pathlib.Path.iterdir()` (GH-30501) https://github.com/python/cpython/commit/a1c88414926610a3527398a478c3e63c531dc742 -- nosy: +zach.ware

[issue46316] Optimize pathlib.Path.iterdir()

2022-01-20 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43654] IDLE: Fix tab completion after settings and some keys

2022-01-20 Thread Tal Einat
Tal Einat added the comment: Terry, for all intents and purposes you're the one in charge of IDLE now. I suggest deciding whether to change all three bindings as in the current PR or only the one for completions. Just le me know and if needed I'll make a new PR. -- _

[issue46441] Caret points to wrong line on 'return yield 42' in REPL

2022-01-20 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset 30fb6d073d9ca00dff8e4155c523cdfa63abab6b by Batuhan Taskaya in branch 'main': bpo-46441: Add a boilerplate to test syntax errors in interactive mode (GH-30720) https://github.com/python/cpython/commit/30fb6d073d9ca00dff8e4155c523cdfa63abab6b

[issue23325] Turn SIG_DFL and SIG_IGN into functions

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may take a time, because the module initialization code has been completely rewritten. -- ___ Python tracker ___ __

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-01-20 Thread jokot3
Change by jokot3 : -- nosy: +jokot3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue45413] Add install scheme for virtual environments

2022-01-20 Thread Stefano Rivera
Change by Stefano Rivera : -- nosy: +stefanor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue46447] datetime.isoformat() documentation does not point to the risk of using it with naive datetime objects

2022-01-20 Thread Jean Carlo Machado
New submission from Jean Carlo Machado : datetime.utcnow() already present a warning box describing the risk of using it without specifying timezone information. However, one might still have the same problem and never encounter this warning information by doing datetime.now().isoformat(). Or

[issue26792] docstrings of runpy.run_{module,path} are rather sparse

2022-01-20 Thread Humbdrag
Change by Humbdrag : -- nosy: +humbdrag nosy_count: 3.0 -> 4.0 pull_requests: +28916 pull_request: https://github.com/python/cpython/pull/30729 ___ Python tracker ___ _

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread Tim Peters
Tim Peters added the comment: For the purpose of topological sorting, yes, it's by far most natural to give, for each node, the collection of that node's predecessors. And that's the way topsort applications typically collect their data to begin with, like, "here, for each recipe, is a list

[issue46086] Add ratio_min() function to the difflib library

2022-01-20 Thread Tal Einat
Tal Einat added the comment: I'm closing this for now since nobody has followed up and to the best of my understanding this wouldn't be an appropriate addition to the stdlib. This can be re-opened in the future if needed, of course. -- resolution: -> rejected stage: patch review ->

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: I checked with Valgrind the affect of PR 30645. main branch: ==330902== LEAK SUMMARY: ==330902== possibly lost: 29,128 bytes in 494 blocks ==330902==still reachable: 353,615 bytes in 3,577 blocks With the PR: ==332161== LEAK SUMMARY: ==332161==

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: Another measure using the command: PYTHONHASHSEED=0 ./python -X showrefcount -c pass I had to run the command 20 times to get a stable value, I don't know why. main branch: [21981 refs, 5716 blocks] PR: [21887 refs, 5667 blocks] => the PR removes 94 ref

[issue41857] Document timeout arguments to poll() in select module

2022-01-20 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue40529] Auto Completions with case insensitive

2022-01-20 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg382482 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40529] Auto Completions with case insensitive

2022-01-20 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg382481 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40529] Auto Completions with case insensitive

2022-01-20 Thread Tal Einat
Tal Einat added the comment: This should probably be brought up in the python-ideas mailing list, which is much more active than the group on discuss.python.org. -- ___ Python tracker __

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-01-20 Thread Tal Einat
Tal Einat added the comment: New changeset 9e87c0e03fa501fb90008547983ce4c1dcaaf90c by Felix Fontein in branch 'main': bpo-46080: fix argparse help generation exception in edge case (GH-30111) https://github.com/python/cpython/commit/9e87c0e03fa501fb90008547983ce4c1dcaaf90c -- nosy:

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-01-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28917 pull_request: https://github.com/python/cpython/pull/30730 ___ Python tracker _

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-01-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +28918 pull_request: https://github.com/python/cpython/pull/30731 ___ Python tracker ___ __

[issue23162] collections.abc sequences don't check identity before equality

2022-01-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc ___ Python tracker

[issue24527] The MimeTypes class cannot ignore global files per instance

2022-01-20 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7275] CoverageResult fails to merge input file with non-empty callers in trace.py

2022-01-20 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue7275] CoverageResult fails to merge input file with non-empty callers in trace.py

2022-01-20 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a GitHub PR. -- nosy: +iritkatriel ___ Python tracker ___ ___ Pyt

[issue41857] Document timeout arguments to poll() in select module

2022-01-20 Thread Tal Einat
Tal Einat added the comment: New changeset 27df7566bc19699b967e0e30d7808637b90141f6 by Zane Bitter in branch 'main': bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406) https://github.com/python/cpython/commit/27df7566bc19699b967e0e30d7808637

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-01-20 Thread miss-islington
miss-islington added the comment: New changeset e5edc8d737a45d9d8b9b93b8be52f85d79d0f417 by Miss Islington (bot) in branch '3.10': bpo-46080: fix argparse help generation exception in edge case (GH-30111) https://github.com/python/cpython/commit/e5edc8d737a45d9d8b9b93b8be52f85d79d0f417

[issue27302] csv.Sniffer guesses wrong when unquoted fields contain quotes

2022-01-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue46448] TypedDict inspect.signature error

2022-01-20 Thread jhwang
New submission from jhwang : I have Python 3.10.1 (Dec, 2021) installed and I see an error when inspecting signature of TypedDict class. This is the same issue reported on Issue43006 (msg385535 - (view)). It was marked as resolved but the error looks persistent. Can someone confirm if this wa

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-01-20 Thread miss-islington
miss-islington added the comment: New changeset c6691a7ccbd027298ea2486014b55db037fffc9f by Miss Islington (bot) in branch '3.9': bpo-46080: fix argparse help generation exception in edge case (GH-30111) https://github.com/python/cpython/commit/c6691a7ccbd027298ea2486014b55db037fffc9f -

[issue28982] multiprocessing.Queue.get(block=True, timeout=0) always raises queue.Empty

2022-01-20 Thread Irit Katriel
Irit Katriel added the comment: On 3.11 I get this on both Mac and windows: >>> from multiprocessing import Queue >>> q = Queue() >>> q.put('foo') >>> q.get(True, 0) # raises Empty 'foo' -- nosy: +iritkatriel resolution: -> out of date status: open -> pending __

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-20 Thread neonene
neonene added the comment: > When cross-compiling, tools that are executed as part of the build need to be > built for the tool platform, not the target platform. My PR does not against that at this point, as proposed codes are based on your PR28322 (09b4ad11f323f8702cde795e345b75e0fbb1a9a5)

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread David Mc Dougall
David Mc Dougall added the comment: The "reverse-toposort" is actually quite a good idea. The end-user is usually going to want to iterate over the sorted output in the "reverse" order anyways, especially if they're doing task ordering / dependency resolution. Also, the underlying algorithm

[issue19479] textwrap.dedent doesn't work properly with strings containing CRLF

2022-01-20 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.3 ___ Python tracker ___ ___

[issue46400] Please update bundled libexpat to 2.4.3 with security fixes

2022-01-20 Thread Ned Deily
Ned Deily added the comment: The bundled expat is potentially used by all Python builds, not just Windows or Mac builds. -- ___ Python tracker ___ ___

[issue46400] Please update bundled libexpat to 2.4.3 with security fixes

2022-01-20 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware ___ Python tracker ___ _

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread David Mc Dougall
David Mc Dougall added the comment: > If the way the user collects their data stores only successor links (which, > as above, seems odd in applications that actually use topsorts), then they > need something like this instead: Actually they only need to do this: ts = TopologicalSorter(my_fo

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: Another measure using the command: PYTHONHASHSEED=0 ./python -X showrefcount -c pass I had to run the command 20 times to get a stable value, I don't know why. main branch: [21981 refs, 5716 blocks] PR: [21887 refs, 5667 blocks] => the PR removes 94 ref

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg411050 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset e9e3eab0b868c7d0b48e472705024240d5c39d5c by Victor Stinner in branch 'main': bpo-46417: Finalize structseq types at exit (GH-30645) https://github.com/python/cpython/commit/e9e3eab0b868c7d0b48e472705024240d5c39d5c -- _

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28919 pull_request: https://github.com/python/cpython/pull/30732 ___ Python tracker ___ __

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-20 Thread Inada Naoki
Inada Naoki added the comment: > If we literally ignore the attribute, any usage of `.mapping` will be an > error, which basically makes the whole `.mapping` feature useless for > statically typed code. It also wouldn't appear in IDE autocompletions. `.mapping` is not exist between Python 3.

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6415e2ee4955b1a995c1e75544e2506b03780c3d by Victor Stinner in branch 'main': bpo-46417: _testembed.c avoids Py_SetProgramName() (GH-30732) https://github.com/python/cpython/commit/6415e2ee4955b1a995c1e75544e2506b03780c3d -- __

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28920 pull_request: https://github.com/python/cpython/pull/30733 ___ Python tracker ___ __

[issue45384] Accept Final as indicating ClassVar for dataclass

2022-01-20 Thread Mehdi2277
Mehdi2277 added the comment: I recently hit this issue working on a config/parsing runtime type checking library (similar in spirit to pydantic). The one other special typeform I was using these with that led me to discover this issue was Annotated. I use Annotated a fair amount to do some r

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28921 pull_request: https://github.com/python/cpython/pull/30734 ___ Python tracker ___ __

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-20 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread Tim Peters
Tim Peters added the comment: I'm going to leave this to Pablo - adding the `graph` argument was his idea ;-) It would, I think, have been better if this argument had been named, say, "preds" instead of "graph". The docs, to my eyes, are entirely clear about that `graph` is a representation

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2022-01-20 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This behavior is definitely unfortunate, but by now it's also been baked into more than a decade of Python 3 releases, so backward compatibility constraints make it difficult to fix. How can we be sure this change won't break users' code? For reference, her

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset f389b37fb1cebe7ed66331cdd373a014695261f6 by Victor Stinner in branch 'main': bpo-46417: _thread uses PyStructSequence_NewType() (GH-30733) https://github.com/python/cpython/commit/f389b37fb1cebe7ed66331cdd373a014695261f6 -- __

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 17f268a4ae6190b2659c89c6f32ad2d006e0e3c8 by Victor Stinner in branch 'main': bpo-46417: time module uses PyStructSequence_NewType() (GH-30734) https://github.com/python/cpython/commit/17f268a4ae6190b2659c89c6f32ad2d006e0e3c8 -- __

  1   2   >