[issue44931] Add "bidimap" to collections library: a simple bidirectional map

2021-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is BiDiMap included in the Java SDK? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pyth

[issue44930] super-Matlab-style ranged list literal initialization

2021-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Steven. Before range() and enumerate() were introduced there were discussions about introducing dedicated syntax. But it was decided that builtin functions are more preferable. range() was improved in Python 3, so you do not need to waste me

[issue44931] Add "bidimap" to collections library: a simple bidirectional map

2021-08-17 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: It is part of the Apache Common collections -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue44930] super-Matlab-style ranged list literal initialization

2021-08-17 Thread wang xuancong
wang xuancong added the comment: Another lazy explanation not wanting to improve anything -- ___ Python tracker ___ ___ Python-bugs

[issue44924] logging.handlers.QueueHandler does not maintain the exc_text

2021-08-17 Thread Vinay Sajip
Vinay Sajip added the comment: It might be inadvisable to make your suggested change because of backward compatibility and breakage of existing code. However, I don't mind updating the logging cookbook to mention your suggested method of resolving the issue for this use case. I'll leave the

[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : When I tried using `isinstance` with a type (e.g. `bool`) as the 1st argument and a parameterized generic in a tuple (e.g. '(`bool`, `list[bool]`)') as the 2nd argument, it raised a `TypeError`, 'isinstance() argument 2 cannot be a parameterized gen

[issue44931] Add "bidimap" to collections library: a simple bidirectional map

2021-08-17 Thread Vedran Čačić
Vedran Čačić added the comment: Your implementation has many problems. First, almost all your complexity claims are wrong, probably because you copied them from Java, which uses balanced trees instead of Python's hash tables. (Also, the method names seem to be copied from Java, using camelCase

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 6a358bb9482f7595b858ea7b800cbe66f0de5fa1 by Gautam Chaudhuri in branch 'main': bpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762) https://github.com/python/cpython/commit/6a358bb9482f7595b858ea7b800cbe66f0de5fa1 -- nosy

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +26260 pull_request: https://github.com/python/cpython/pull/27790 ___ Python tracker _

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26261 pull_request: https://github.com/python/cpython/pull/27791 ___ Python tracker ___ __

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 27fd31311097ab7326f084b5e0e5f388f8dc6b13 by Łukasz Langa in branch '3.9': [3.9] bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) (GH-27788) https://github.com/python/cpython/commit/27fd31311097ab7326f084b5e0e5f388f8dc6b13

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread tester
New submission from tester : When trying too build the python framework using the method below and you try to get it notarized you get the following error. "path": "munkitools-5.5.0.4362.pkg/munkitools_python.pkg Contents/Payload/usr/local/munki/Python.framework/Versions/3.9/bin/python3.9-int

[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread Ken Jin
Ken Jin added the comment: @Paul, Steve, Tim and Zach, I've removed y'all from nosy as this isn't a Windows issue (but a typing/builtin types one). If you feel that I shouldn't have done that: my apologies and please do tell me. To summarize what OP said: >>> isinstance(bool, (bool, list[bo

[issue44914] tp_version_tag is not unique when test runs with -R :

2021-08-17 Thread Ken Jin
Ken Jin added the comment: Thanks Mark and Victor for the patch and reviews! This issue also affects 3.10, but IMO we don't need to backport this as we don't have other code relying on this invariant in that version, so it won't affect anything there. If you feel otherwise, please let me kno

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2021-08-17 Thread miss-islington
miss-islington added the comment: New changeset 6f6648e436d02bce0e49ba82f4377c0d2f586f0f by Miss Islington (bot) in branch '3.10': bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) https://github.com/python/cpython/commit/6f6648e436d02bce0e49ba82f4377c0d2f586f0f --

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what your question is. But to enable the hardened runtime you need to sign the binaries using ``--options runtime`` as one of the options. -- ___ Python tracker _

[issue44914] tp_version_tag is not unique when test runs with -R :

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The opcode cache for load attribute in 3.10 uses the tp_version_tag so unless I am missing something we can fall into the same problem, no? -- ___ Python tracker ___

[issue44914] tp_version_tag is not unique when test runs with -R :

2021-08-17 Thread Ken Jin
Ken Jin added the comment: @Pablo yup the 3.10 opcache used tp_version_tag. But it also does identity (pointer) comparison of type/class object https://github.com/python/cpython/blob/3.10/Python/ceval.c#L3432. Which is why it doesn't fail. I created this issue because we don't do type point

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-17 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset bc98f981326d7cb30f939dedd04b91f378255d88 by Łukasz Langa in branch '3.10': [3.10] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest (GH-27634) (GH-27784) https://github.com/python/cpython/commit/bc98f981326d7cb30f939de

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Max for pushing this across the finish line! ✨ 🍰 ✨ Closing this one. Further improvement of BooleanOptionalAction will be discussed in BPO-44587. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: Toshio, as I commented on GH-27672, that PR was merged because it's a rather trivial improvement over the status quo. I intend to also release this fix in 3.9.7 on August 30th. Your idea in this issue to further improve the situation while retaining displaying

[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: Oh, I forgot to say this explicitly: an important reason why the trivial fix was desirable is that it was a clear-cut bugfix, making it easy to backport all the way to the 3.9 branch where BooleanOptionalAction was introduced. Having this in place, your potenti

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-17 Thread miss-islington
miss-islington added the comment: New changeset f6bd1ca166a9c8c9769fb23bc6d8f9c6dcc907ab by Miss Islington (bot) in branch '3.10': bpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762) https://github.com/python/cpython/commit/f6bd1ca166a9c8c9769fb23bc6d8f9c6dcc907ab

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e21b66b0446d119862d352b1eecc830fed4192ff by Miss Islington (bot) in branch '3.9': bpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762) (GH-27790) https://github.com/python/cpython/commit/e21b66b0446d119862d352b1eecc830fed4192ff -

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks all! ✨ 🍰 ✨ CPython docs are now out of the business of curating lists of GUI frameworks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44914] tp_version_tag is not unique when test runs with -R :

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > But it also does identity (pointer) comparison of type/class object Good point! Even if I wrote that code I forgot about all the guards that were needed for correctness. I now remember all the weird cases we discovered there :) --

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread tester
tester added the comment: This part of the script is used to notarize the python framework and it worked with python 3.9.4 and earlier but with 3.9.5 and 3.9.6 it stopped working because of "/python3.9-intel64", "message": "The executable does not have the hardened runtime enabled. #get curr

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-17 Thread Bastian Neuburger
New submission from Bastian Neuburger : Hi there, in our organization Python 3.9 is installed on Windows with the PrependPath option; as expected the Install and Scripts directories are prepended to path. However if there are Python scripts with the same name as a system command (e.g. a scri

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know what creates "python3.9-intel64", but this is not created by the regular Python build process. It might be created by one of the build scripts you use. -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: However, if I replace the assignment with a gc.collect() call, it still leaks: def test_no_hang_on_context_chain_cycle2(): while gc.collect(): pass class A(Exception): pass class B(Exception): pass ... I also changed gc_

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: But if I also add a gc loop at the beginning of test_recursion_in_except_handler, the leak goes away. def test_recursion_in_except_handler(): while gc.collect(): pass def set_relative_recursion_limit(n): ... So maybe test_recursion_in_exce

[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not specific to typing. >>> isinstance(1, (int, 1)) True >>> isinstance(1, (1, int)) Traceback (most recent call last): File "", line 1, in TypeError: isinstance() arg 2 must be a type or tuple of types >>> issubclass(int, (int, 1)) True >>> issubcl

[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread tester
tester added the comment: oh i didn't now that so thank you so much i will look into that maybe thats where my problem is :) -- ___ Python tracker ___ ___

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-17 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26262 pull_request: https://github.com/python/cpython/pull/27793 ___ Python tracker ___ _

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: Mark, it's great to see you work on the documentation again. I would like you invite you to produce a number of smaller PRs, just like you did with GH-27717. Those tend to be much easier to include even as we are discussing larger-scale evolution of the documen

[issue33479] Document tkinter and threads

2021-08-17 Thread Łukasz Langa
Łukasz Langa added the comment: This is done. Thanks, Mark! For remaining discussion on reworking Tkinter docs, please refer to BPO-42560. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Pyth

[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread Ken Jin
Ken Jin added the comment: Thank you for the examples Serhiy. I agree. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue44926] typing.get_type_hints() raises for type aliases with forward references

2021-08-17 Thread Maximilian Hils
Maximilian Hils added the comment: Thank you Ken and Guido for the super quick feedback! > It's not fine if it were to look in the wrong namespace That's a really good point. Here's another terrible example: foo.py: ``` import typing FooData: typing.TypeAlias = "Data" class Data: pass

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +26263 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27794 ___ Python tracker ___

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: > Maybe the old behavior was better: if an extension uses the old API, share > its state between all interpreters. Yes, I think the old behavior was better: if an extension uses the old API, share its state between all interpreters. This is obviously bad, bu

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi
hai shi added the comment: > Maybe the old behavior was better: if an extension uses the old API, share > its state between all interpreters. +1. I create PR-27794, which use `def->m_slots` to identify the extension module created from `PyModule_Create()` or not. cc @petr -- __

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f by Hai Shi in branch 'main': bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551) https://github.com/python/cpython/commit/3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f -- _

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Jakub Kulik
New submission from Jakub Kulik : Solaris also provides posix_spawn() syscall that can/should be used in the subprocess module to spawn new processes. -- components: Library (Lib) messages: 399750 nosy: kulikjak priority: normal severity: normal status: open title: Solaris: enable posi

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Richard Sheridan
Change by Richard Sheridan : -- nosy: +Richard Sheridan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +26264 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27795 ___ Python tracker ___

[issue44931] Add "bidimap" to collections library: a simple bidirectional map

2021-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: This has come up several times in the past and never moved forward. Part of the reason is that the mapping API doesn't translate cleanly to bidirectional lookups and it leaves users trapped if two keys every end up needing to be mapped to the same value

[issue26871] Change weird behavior of PyModule_AddObject()

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: Since https://github.com/python/cpython/pull/23122, there is PyModule_AddObjectRef doesn't steal a reference. PyModule_AddObject is discouraged in the docs, but not formally deprecated. (As Stefan notes, the leaks are single references in case of a module ini

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi
hai shi added the comment: > (Note that the "def->m_size == -1" means that the module does not support > sub-interpreters, because it has global state. Make Sense. It's more better and exact than my suggestion :) -- ___ Python tracker

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: Following discussion on python-dev I added a compile-time deprecation warning. With this, and after reverting PR27683 I get the warning below. The build succeeds and the tests pass. % make -s -j2 Objects/frameobject.c:622:5: warning: 'UsingDeprecatedTrashcanM

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset fcd651d16fc5ac3d07dd3f57f1001a861a2e7d23 by Hai Shi in branch 'main': bpo-42035: Enhance test_get_type_name() of _testcapi (GH-27649) https://github.com/python/cpython/commit/fcd651d16fc5ac3d07dd3f57f1001a861a2e7d23 --

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: Link to python-dev thread: https://mail.python.org/archives/list/python-...@python.org/message/LWP6MOLP5UW2TH3MROZQK4N64SX35N2B/ -- ___ Python tracker __

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Petr Viktorin added the comment: Now, I wonder if we should also introduce PyType_GetModuleName for __module__, or stop and close this as fixed. -- ___ Python tracker ___ ___

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-17 Thread Steve Dower
Steve Dower added the comment: Prepending is used because it makes the most recently installed version of Python the "active" one. It also ensures that a deliberate install is going to override any applications that may have put their own copy on PATH (deliberately or otherwise). There's no

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset 96346cb6d0593ef9ec122614347ccb053cd63433 by Ken Jin in branch 'main': bpo-44889: Specialize LOAD_METHOD with PEP 659 adaptive interpreter (GH-27722) https://github.com/python/cpython/commit/96346cb6d0593ef9ec122614347ccb053cd63433 -- nos

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread hai shi
hai shi added the comment: > Now, I wonder if we should also introduce PyType_GetModuleName for > __module__, or stop and close this as fixed. IMO, I suggest to close this bpo. We can get the `tp_name` by the C API now. If there have user want get `__module__`, we can open a new bpo to discu

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Ken Jin
Ken Jin added the comment: Some improvements can be made (see https://github.com/python/cpython/pull/27722#issuecomment-900369714), but for the most part we're done. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset c2c857b40f226575d64e0d56a759cbd799f51e62 by Dong-hee Na in branch 'main': bpo-44895: Introduce PYTHONDUMPREFSFILE variable for refcount dumping (GH-27767) https://github.com/python/cpython/commit/c2c857b40f226575d64e0d56a759cbd799f51e62 -

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: I'm pretty sure the frame locals is involved. This leaks (note that a is being re-raised, not b): - def test_no_hang_on_context_chain_cycle2(): class A(Exception): pass class B(Exception): pass try: try: rai

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg399763 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: I'm pretty sure the frame locals is involved. This leaks (not a is being re-raised, not b): - def test_no_hang_on_context_chain_cycle2(): class A(Exception): pass class B(Exception): pass try: try: raise A()

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Mark Roseman
Mark Roseman added the comment: Łukasz, I've got a bunch of individual branches for each of those sections. What I posted the link to was a merge of all of them just for overview purposes, but the PR's will be created from the individual branches. I can start creating those now or wait a bit,

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2021-08-17 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list ma

[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-08-17 Thread Dong-hee Na
Dong-hee Na added the comment: Let's deprecate it from 3.11 and remove it at 3.12 :) -- nosy: +corona10 ___ Python tracker ___ ___

[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-08-17 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699 by Mark Dickinson in branch 'main': bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) https://github.com/python/cpython/commit/4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699 ---

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26266 pull_request: https://github.com/python/cpython/pull/27797 ___ Python tracker ___ __

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +26265 pull_request: https://github.com/python/cpython/pull/27796 ___ Python tracker ___ __

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
New submission from STINNER Victor : GitHub Action Windows x64: https://github.com/python/cpython/runs/3342514542 test_concurrent_futures failed when tests are run in parallel, but then passed then re-run in verbose mode. ==

[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
New submission from STINNER Victor : GitHub Action Windows x64 CI: https://github.com/python/cpython/runs/3342514542 First, test_regrtest was killed after 20 minutes, while it was running test_tools_script_run_tests(). Then, re-running test_regrtest in verbose mode failed with a PermissionErro

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: Recent failure on GHA Windows x64: https://github.com/python/cpython/runs/3342514542 2021-08-16T17:19:58.4338049Z == 2021-08-16T17:19:58.4339129Z FAIL: test_sendfile_close_peer_in_the_middl

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: > AssertionError: Process return code is 3221225477 > (...) > AssertionError: Process return code is 3221225477 This is STATUS_ACCESS_VIOLATION: the process crashed, not good :-( Moreover, even if the process was run with -X faulthandler, stderr is empty :-(

[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland, lukasz.langa, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: In another commit of the same PR 27774, I don't even see test_regrtest in the list of the "10 slowest tests", so test_regrtest took less than "test_socket: 46.4 sec". If test_regrtest is killed after 20 minutes, it's likely that it was stuck somewhere. tes

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor
STINNER Victor added the comment: The machine was busy when test_concurrent_futures: system load of 5.59. 2021-08-16T17:14:01.3805500Z 0:01:58 load avg: 5.59 [ 93/428/1] test_concurrent_futures failed (2 failures) (1 min 49 sec) -- running: test_regrtest (39.2 sec) -- _

[issue44926] typing.get_type_hints() raises for type aliases with forward references

2021-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: Maximilian, I think your last analysis is spot on. The problem is specific to type aliases and how at runtime they do not carry information about scope with them. The current type alias syntax (both the original form and the form using "x: TypeAlias = ..."

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 3f81e9628f6f104c103d0e38adb84c51e5261626 by Miss Islington (bot) in branch '3.10': bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27796) https://github.com/python/cpython/commit/3f81e9628f6f104c103d0e38adb8

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset beb3a835dae3cd940b93e7caa32450890c4cd539 by Miss Islington (bot) in branch '3.9': bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27797) https://github.com/python/cpython/commit/beb3a835dae3cd940b93e7caa3245

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Currently, exception chaining in the C-API must be done by hand. This is a painstaking process that involves several steps and is very easy to do incorrectly. We currently have a private function: _PyErr_ChainExceptions that does this job. Given th

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27799 ___ Python tracker __

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b1930bf75f276cd7ca08c4455298128d89adf7d1 by Jakub Kulík in branch 'main': bpo-44935: enable posix_spawn() on Solaris (GH-27795) https://github.com/python/cpython/commit/b1930bf75f276cd7ca08c4455298128d89adf7d1 -- nosy: +gregory.p.smit

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26268 pull_request: https://github.com/python/cpython/pull/27800 ___ Python tracker _

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: Re-closing; we should be good now. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread miss-islington
miss-islington added the comment: New changeset 826e059bb9b42e17bef2186938a2bd3f33610e69 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800) https://github.com/python/cpython/commit/826e059bb9b42e17bef2186938a2bd3f33610e69 --

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: So there's code generated for an except clause with a variable that clears the variable at the end, so that this works: try: ... except Exception as err: ... print(err) # Should fail, since err was cleared when the except clause exited. Maybe there's

[issue42560] Improve Tkinter Documentation

2021-08-17 Thread E. Paine
E. Paine added the comment: > In particular, you added OS-specific info I also deemed this very useful information. The issue is that it is not documented in the man pages and so those values are pulled straight from the source code. We would need to decide whether we keep such information i

[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread Guido van Rossum
Guido van Rossum added the comment: Agreed. Thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2021-08-17 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Achraf Merzouki
Achraf Merzouki added the comment: Can we backport the security fix from this issue https://bugs.python.org/issue36384#msg392684 to version 3.8 The comment explicitly says that it was decided to not include in 3.8, I am not sure this is best, since it prevents using 3.8 because of this open

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: It's probably not that because this leaks too, and it skips the cleanup: try: raise B() except B: b = sys.exc_info()[1] -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel
Irit Katriel added the comment: But this makes it not leak again, so now we know it's the traceback: try: raise B() except B: b = sys.exc_info()[1] b.__traceback__ = None -- ___ Python tracker

[issue44939] proposal: add support for regex in Literal type hint

2021-08-17 Thread Leon Mintz
New submission from Leon Mintz : Could typing.Literal (or analogous) accept a regex pattern to match against? For example, if I want a duration string, duration: str # allowed syntax: 3s, 3m, 3h etc. vs duration: LiteralPattern['[0-9]+[smh]'] -- messages: 399787 nosy: leon.mintz pr

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 17.0 -> 18.0 pull_requests: +26269 pull_request: https://github.com/python/cpython/pull/27801 ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am still amazed that I cannot reproduce the leaks on my machine. Maybe I am missing some steps. Could you outline how are you reproducing the leaks? -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > But this makes it not leak again, so now we know it's the traceback: The traceback is a very heavy gc object because it contains the frames, and in the locals of the frame is the traceback itself via the exception. This is a well known heavy cycle,

[issue44921] dict subclassing is slow

2021-08-17 Thread Marco Sulla
Marco Sulla added the comment: Since my knowledge of this is very poor, I informed Monica about the issue. I'm quite sure that if there's a way to turn lemons into lemonade :) -- ___ Python tracker

[issue44921] dict subclassing is slow

2021-08-17 Thread Marco Sulla
Marco Sulla added the comment: I not finished my phrase. I'm sure that if there's a way to turn lemons into lemonade, she is **MUCH** more skilled than me to find one. -- ___ Python tracker ___

  1   2   >