[issue44735] Failed venv Activation With "&" In Folder Name

2021-07-24 Thread adore_blvnk
New submission from adore_blvnk : This is relating to activation of venvs. This was first discovered in VS Code, but can be replicated in Windows CMD & PyCharm too. Normally, creating a virtual environment via py -m venv venv would create the venv. Next would be the activation of the venv,

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-24 Thread Charles Burkland
Change by Charles Burkland : -- keywords: +patch nosy: +chaburkland nosy_count: 6.0 -> 7.0 pull_requests: +25887 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27346 ___ Python tracker

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Ken Jin
Ken Jin added the comment: This is fixed. Thanks Yurii and Serhiy for the patches :) (and everyone else for the reviews too). -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +25886 pull_request: https://github.com/python/cpython/pull/27344 ___ Python tracker ___

[issue44732] Rename types.Union to types.UnionType

2021-07-24 Thread Hasan
Hasan added the comment: should have a deprecation period and if so, how long? -- ___ Python tracker ___ ___ Python-bugs-list

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2021-07-24 Thread Logan Jones
Change by Logan Jones : -- keywords: +patch nosy: +loganasherjones nosy_count: 1.0 -> 2.0 pull_requests: +25885 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27343 ___ Python tracker

[issue44732] Rename types.Union to types.UnionType

2021-07-24 Thread Hasan
Change by Hasan : -- keywords: +patch pull_requests: +25884 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27342 ___ Python tracker ___

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0a8ae8a50a0fea3d39ec49b220a5c7a5b70e36f8 by Filipe Laíns in branch 'main': bpo-44717: improve AttributeError on circular imports of submodules (GH-27338) https://github.com/python/cpython/commit/0a8ae8a50a0fea3d39ec49b220a5c7a5b70e36f8

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-24 Thread Genaro Camele
Genaro Camele added the comment: Hi @jack__d, thanks for your answer and time. Unfortunately, It's still a regression, as in Python < 3.9 my example works as expected -- ___ Python tracker

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0aea99e44416f37c75e5540072156dbf90ef1659 by Miss Islington (bot) in branch '3.10': bpo-44676: Serialize the union type using only public API (GH-27323) (GH-27340)

[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2021-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Which comes out 'Tr̥Tīyā'. The underdot '̥' is '0x325' -- ___ Python tracker ___ ___

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: There is a subtle difference between traceback.py and Python/traceback.c which makes the latter (C version) output the line without trimming the trailing whitespace. The Python version simply uses `.strip()` which strips both the left (starting) and right

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25883 pull_request: https://github.com/python/cpython/pull/27340 ___ Python tracker ___

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 435a0334d341e5f8faed594d9f015746bb7845db by Serhiy Storchaka in branch 'main': bpo-44676: Serialize the union type using only public API (GH-27323) https://github.com/python/cpython/commit/435a0334d341e5f8faed594d9f015746bb7845db --

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25882 pull_request: https://github.com/python/cpython/pull/27339 ___ Python tracker ___

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +25881 pull_request: https://github.com/python/cpython/pull/27338 ___ Python tracker ___

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset 4f5980a4f57dab68b9137304f58bd08891d43d5a by Batuhan Taskaya in branch 'main': bpo-43950: support long lines in traceback.py (GH-27336) https://github.com/python/cpython/commit/4f5980a4f57dab68b9137304f58bd08891d43d5a --

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset ef8b8535cb3cd705392af9b927d6ff336d98427d by Batuhan Taskaya in branch 'main': bpo-43950: check against the raw string, not the pyobject (GH-27337) https://github.com/python/cpython/commit/ef8b8535cb3cd705392af9b927d6ff336d98427d --

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25880 pull_request: https://github.com/python/cpython/pull/27337 ___ Python tracker ___

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core, Library (Lib) versions: +Python 3.10 ___ Python tracker ___ ___

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25879 pull_request: https://github.com/python/cpython/pull/27336 ___ Python tracker ___

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, ask me to review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2021-07-24 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44728] Testsuite fails on x86_64

2021-07-24 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like the turtle code was changed to use `math.hypot` instead of `** 0.5` in issue #41528. That will likely also fix the test failure, but I've opened #44734 to fix the unnecessarily strict test. -- ___

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2021-07-24 Thread Mark Dickinson
Change by Mark Dickinson : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2021-07-24 Thread Mark Dickinson
New submission from Mark Dickinson : >From the tests for Vec2D.__abs__ in the turtle module we have: def test_distance(self): vec = Vec2D(6, 8) expected = 10 self.assertEqual(abs(vec), expected) vec = Vec2D(0, 0) expected = 0

[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2021-07-24 Thread Vishvas Vasuki
Vishvas Vasuki added the comment: This case still fails with 3.9 - 'Tr̥tīyā'.title() -- nosy: +vishvas.vasuki ___ Python tracker ___

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 5.0 -> 6.0 pull_requests: +25878 pull_request: https://github.com/python/cpython/pull/27335 ___ Python tracker ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Ken Jin
Ken Jin added the comment: Thanks a bunch Yurii, Serhiy, Jelle, Łukasz and Pablo for working on this! I'm re-closing this issue. *Fingers-crossed* we won't have to open this again ;-). -- resolution: -> fixed status: open -> closed ___ Python

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-24 Thread Brandt Bucher
Brandt Bucher added the comment: Yup, I plan on having it in this weekend. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44728] Testsuite fails on x86_64

2021-07-24 Thread Mark Dickinson
Mark Dickinson added the comment: The test_posix failure appears to be unrelated; I'll let others look into that one. The test_turtle failure looks again like a libm issue, perhaps combined with an overeager test: we're expecting a `** 0.5` operation (which translates to a libm pow call)

[issue44728] Testsuite fails on x86_64

2021-07-24 Thread Mark Dickinson
Mark Dickinson added the comment: Extract from the log - from the configure output: > checking for expm1... yes and from the test output > expm10118: expm1(27.0): expected 532048240600.79865, got 532048240600.7976 > (error = 0.00104 (17 ulps); permitted error = 0 or 5 ulps) > expm10119:

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ca5a4cf8266cf789eae379fe224458e94dd41b30 by Ken Jin in branch '3.10': bpo-44731: Simplify the union type implementation (GH-27318) (GH-27334) https://github.com/python/cpython/commit/ca5a4cf8266cf789eae379fe224458e94dd41b30 --

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-24 Thread Jack DeVries
Jack DeVries added the comment: Ah never mind. @Genarito, the ThreadPoolExecutor is supposed to be used as a context manager. In your current code, the script ends and Python starts tearing itself down while `execute_error` is still running in a subprocess. If you simply use the

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread miss-islington
miss-islington added the comment: New changeset 8158e059e9952f08d19a18d3e9e021cee2393cd2 by Pablo Galindo Salgado in branch 'main': bpo-44676: Fix reference leaks in union_reduce (GH-27332) https://github.com/python/cpython/commit/8158e059e9952f08d19a18d3e9e021cee2393cd2 -- nosy:

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25877 pull_request: https://github.com/python/cpython/pull/27334 ___ Python tracker ___ ___

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-24 Thread Jack DeVries
Jack DeVries added the comment: I am working on a fix for this bug. I'm a beginner cpython contributor, so if anyone recognizes this as a fool's errand, please let me know! -- nosy: +jack__d ___ Python tracker

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9356d1e47de583fd794e9d29abc448759f7a4109 by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-44676: Add ability to serialize types.Union (GH-27244) (GH-27333)

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25876 pull_request: https://github.com/python/cpython/pull/27333 ___ Python tracker ___

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 08284231275ac9cc60ae27eab2338805919d8881 by Serhiy Storchaka in branch 'main': bpo-44731: Simplify the union type implementation (GH-27318) https://github.com/python/cpython/commit/08284231275ac9cc60ae27eab2338805919d8881 --

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3eae8f20d7b6f88d3618b0afc94893165a914022 by Pablo Galindo Salgado in branch 'main': Revert "bpo-44717: improve AttributeError on circular imports of submodules (GH-27299)" (GH-27331)

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25875 pull_request: https://github.com/python/cpython/pull/27332 ___ Python tracker ___

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This PR has introduced reference leaks. Bisecting points to: fe13f0b0f696464dd6f283576668dbf57cb11399 is the first bad commit commit fe13f0b0f696464dd6f283576668dbf57cb11399 Author: Yurii Karabas <1998uri...@gmail.com> Date: Fri Jul 23 12:47:00 2021

[issue44353] PEP 604 NewType

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am closing this one again, apologies for the confusion. -- ___ Python tracker ___ ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Bisecting points to: fe13f0b0f696464dd6f283576668dbf57cb11399 is the first bad commit commit fe13f0b0f696464dd6f283576668dbf57cb11399 Author: Yurii Karabas <1998uri...@gmail.com> Date: Fri Jul 23 12:47:00 2021 +0300 bpo-44676: Add ability to

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: types is not typing. This is a different failure from what we've seen before. I'll fix that today. -- ___ Python tracker ___

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25874 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27331 ___ Python tracker ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Pick any of the failing refleak buildbots. For example: https://buildbot.python.org/all/#/builders/280/builds/99 You will see: -- Ran 106 tests in 0.074s OK .. test_types leaked

[issue44353] PEP 604 NewType

2021-07-24 Thread Ken Jin
Ken Jin added the comment: @Pablo, I don't think this change is causing the buildbots to fail. The test failure on all the currently failing buildbots is: == ERROR: test_absolute_circular_submodule

[issue44353] PEP 604 NewType

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The buildbots are still not green. Unfortunately we will need to revert all PRs if this is not fixed soon as this is already making other issues -- resolution: fixed -> status: closed -> open ___ Python

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There is a buildbot failure after merging this PR: https://buildbot.python.org/all/#/builders/464/builds/574 If is not fixed in 24 we will need to revert per our buildbot policy -- resolution: fixed -> status: closed -> open

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The release candidate is soon, so I would recommend to land a fix as soon as possible so it can be tested for some time before is released, if that is possible. -- nosy: +pablogsal ___ Python tracker

[issue43950] Include column offsets for bytecode instructions

2021-07-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c8362314cce53a5b59da7523fbdfa00f122aa319 by Batuhan Taskaya in branch 'main': bpo-43950: ensure source_line is present when specialising the traceback (GH-27313)

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2021-07-24 Thread Ram Rachum
New submission from Ram Rachum : I love `concurrent.futures`, and I'd like to use it wherever I can. There's a feature in `multiprocessing.Pool` that I wish would also be available in `ProcessPoolExecutor`: The `maxtasksperchild` argument. Documentation: "maxtasksperchild is the number of

[issue44694] Message from BytesParser cannot be flattened immediately

2021-07-24 Thread Vitas Ivanoff
Change by Vitas Ivanoff : Added file: https://bugs.python.org/file50178/0.msg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36643] Forward reference is not resolved by dataclasses.fields()

2021-07-24 Thread Eric V. Smith
Eric V. Smith added the comment: Also, when dataclasses was originally written, it deliberately did not import typing, for performance reasons. I don't know if PEP 560 (I think) improved performance enough to make a difference. But adding this dependency needs to be looked at. But if we

[issue36643] Forward reference is not resolved by dataclasses.fields()

2021-07-24 Thread Eric V. Smith
Eric V. Smith added the comment: I’m deferring any action on this until PEP 649 is ruled on. -- assignee: -> eric.smith ___ Python tracker ___

[issue36643] Forward reference is not resolved by dataclasses.fields()

2021-07-24 Thread Misha Drachuk
Change by Misha Drachuk : -- keywords: +patch pull_requests: +25873 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27330 ___ Python tracker ___

[issue44713] subprocess.rst typo ``"shell=True"`` => ``shell=True``

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5d9c86e340b40379d18ffeb7ce1739e07bdeb536 by Miss Islington (bot) in branch '3.9': bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (#27327) https://github.com/python/cpython/commit/5d9c86e340b40379d18ffeb7ce1739e07bdeb536 --

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e8c01749c02a97a2f5b01086951bb564121c5113 by Miss Islington (bot) in branch '3.10': bpo-44353: Improve tests covering typing.NewType pickling (GH-27302) (GH-27328) https://github.com/python/cpython/commit/e8c01749c02a97a2f5b01086951bb564121c5113

[issue44353] PEP 604 NewType

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25872 pull_request: https://github.com/python/cpython/pull/27328 ___ Python tracker ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 05f5d8e48c86c8025d3f82285666d93e52e360f9 by Łukasz Langa in branch '3.10': [3.10] bpo-44353: Expand NewType tests for complex __qualname__ (GH-27311) (GH-27326) https://github.com/python/cpython/commit/05f5d8e48c86c8025d3f82285666d93e52e360f9

[issue44713] subprocess.rst typo ``"shell=True"`` => ``shell=True``

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25871 pull_request: https://github.com/python/cpython/pull/27327 ___ Python tracker ___

[issue44713] subprocess.rst typo ``"shell=True"`` => ``shell=True``

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 45caee27159aa89b8dbcfde0c5faedea5f965584 by Miss Islington (bot) in branch '3.10': bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (GH-27298) https://github.com/python/cpython/commit/45caee27159aa89b8dbcfde0c5faedea5f965584 --

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a22b05da87bdfb081d6aaecfce136ae8dbb8680c by Yurii Karabas in branch 'main': bpo-44353: Improve tests covering typing.NewType pickling (GH-27302) https://github.com/python/cpython/commit/a22b05da87bdfb081d6aaecfce136ae8dbb8680c --

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks a lot for your report and patch, Filipe! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44717] Improve AttributeError on circular imports of submodules

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8072a1181dd64135f700b44372fbf7bf91e68072 by Filipe Laíns in branch 'main': bpo-44717: improve AttributeError on circular imports of submodules (GH-27299) https://github.com/python/cpython/commit/8072a1181dd64135f700b44372fbf7bf91e68072

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +25870 pull_request: https://github.com/python/cpython/pull/27326 ___ Python tracker ___

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your quick pull request, Dennis! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0a08f22184aef6e36bb8bb7ad84207e47594f46e by Miss Islington (bot) in branch '3.9': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (#27325)

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 659030c7d56a329c1aa559678f2df15e306215e4 by Miss Islington (bot) in branch '3.10': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (GH-27324)

[issue44732] Rename types.Union to types.UnionType

2021-07-24 Thread Hasan
Hasan added the comment: If nobody works on it i would like to fix it -- nosy: +AliyevH ___ Python tracker ___ ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d15949a845a6db66675bca7105ad508ba9e79639 by Miss Islington (bot) in branch '3.10': bpo-44353: Document that typing.NewType is now a class (GH-27319) (GH-27321) https://github.com/python/cpython/commit/d15949a845a6db66675bca7105ad508ba9e79639

[issue44732] Rename types.Union to types.UnionType

2021-07-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are differences between typing.Union and types.Union: * typing.Union is indexable, types.Union is not. * types.Union is a class, typing.Union is not. types.Union corresponds to typing._UnionGenericAlias, not typing.Union. It is confusing that

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25869 pull_request: https://github.com/python/cpython/pull/27325 ___ Python tracker ___

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5370f0a82aaa4ba617070d5c71d2b18236096ac0 by Dennis Sweeney in branch 'main': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) https://github.com/python/cpython/commit/5370f0a82aaa4ba617070d5c71d2b18236096ac0

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25868 pull_request: https://github.com/python/cpython/pull/27324 ___ Python tracker

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25867 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27323 ___ Python tracker ___

[issue44611] CPython uses deprecated randomness API

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4463fa2fa111e03f7ec47e6e9d433104aa943605 by Dong-hee Na in branch 'main': bpo-44611: Update docs for os and whatsnew 3.11 (#27314) https://github.com/python/cpython/commit/4463fa2fa111e03f7ec47e6e9d433104aa943605 -- nosy: +lukasz.langa

[issue44676] Add ability to serialise types.Union

2021-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not good to use private method in pickle, because we will not be able to get rid of it for backward compatibility. Why not use functools.reduce()? -- nosy: +serhiy.storchaka status: closed -> open ___

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It fixes also issue44642. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44353] PEP 604 NewType

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25866 pull_request: https://github.com/python/cpython/pull/27321 ___ Python tracker ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7aac3f623610cf3dffbf548a5be5bfd4fa6790a0 by Ken Jin in branch 'main': bpo-44353: Document that typing.NewType is now a class (#27319) https://github.com/python/cpython/commit/7aac3f623610cf3dffbf548a5be5bfd4fa6790a0 --

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-24 Thread Steven Hsu
Steven Hsu added the comment: Applying above suggestions, the first sentence of the entry "__future__" would be replaced by: A :ref:`future statement `, "from __future__ import *feature* ...", directs the compiler to compile the current module using syntax or semantics that will become

[issue43145] Leak of locks from multiprocessing.Process

2021-07-24 Thread hai shi
hai shi added the comment: > The following locks are leaked: > 1. > https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L78 > 2. > https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L84 > 3. >

[issue44353] PEP 604 NewType

2021-07-24 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25865 pull_request: https://github.com/python/cpython/pull/27319 ___ Python tracker ___ ___

[issue44353] PEP 604 NewType

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e89ef0ad2a299770a88ece8f7a316f7d3eb65c9f by Serhiy Storchaka in branch 'main': bpo-44353: Expand NewType tests for complex __qualname__. (#27311) https://github.com/python/cpython/commit/e89ef0ad2a299770a88ece8f7a316f7d3eb65c9f --

[issue44353] PEP 604 NewType

2021-07-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25864 pull_request: https://github.com/python/cpython/pull/9951 ___ Python tracker ___

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25863 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27318 ___ Python tracker

[issue44731] Simplify implementation of the union type

2021-07-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR simplifies implementation of the union type by removing direct support of typing types. It was not necessary because all these types implement __or__ and __ror__ methods. The only visible difference is that int | TypeVar() etc returns

[issue44674] dataclasses should allow frozendict default value

2021-07-24 Thread Gianni Mariani
Gianni Mariani added the comment: @Arjun - this is about default values (See the bug description - Using a frozendict as a default value) Try this: from frozendict import frozendict from dataclasses import dataclass @dataclass class A: a: frozendict = frozendict(a=1) This used to work