[issue44663] Possible bug in datetime utc

2021-07-17 Thread Vedran Čačić
Vedran Čačić added the comment: Would it be possible to change .utcnow to now return a datetime annotated with UTC "timezone"? After all, now we have timezone-aware datetimes and the convention that naive means local, this behavior might even be considered a bug. -- nosy: +veky

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-17 Thread Jack DeVries
Jack DeVries added the comment: @StevenHsuYL yes, you can go ahead and create a PR for this if you'd like! Just follow the directions in the dev guide (link in sidebar). I can't really tell for sure because I'm on my phone right now, but it looks like this might be your first time

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-17 Thread Ken Jin
Change by Ken Jin : -- pull_requests: -25752 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-17 Thread Jack DeVries
Change by Jack DeVries : -- nosy: +jack__d ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-07-17 Thread Jack DeVries
Jack DeVries added the comment: @brandtbucher, is anyone working on this yet? I'd like to take a crack at it this week if it's still available! -- nosy: +jack__d ___ Python tracker

[issue44657] instancemethod_call should use PyInstanceMethod_GET_FUNCTION macro

2021-07-17 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43958] Importlib.metadata docs claim PackagePath is a Path subclass

2021-07-17 Thread miss-islington
miss-islington added the comment: New changeset 049e98b2b74cdcd462f31720c24ab6ebff599d9f by Miss Islington (bot) in branch '3.9': [3.9] bpo-43958: Document importlib.metadata.PackagePath.locate method (GH-25669) (GH-27221)

[issue43958] Importlib.metadata docs claim PackagePath is a Path subclass

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

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +25761 pull_request: https://github.com/python/cpython/pull/27220 ___ Python tracker

[issue42581] Docs site redirection doesn't work for 3.9

2021-07-17 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44663] Possible bug in datetime utc

2021-07-17 Thread Tim Peters
Tim Peters added the comment: > It looks like the difference one would expect from (fast) human input) Nope, the timestamps in the original report are about 3 hours apart (10808+ seconds). Reports like these are often much clearer if they state the timezone of the system they're running

[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-17 Thread Dan Snider
New submission from Dan Snider : chr (or anything else which calls `PyUnicode_FromOrdinal`) raises ValueError if its argument falls outside the range of valid Unicode code points, while `PyUnicode_FromFormat` raises OverflowError. Shouldn't the latter raise ValueError as well? --

[issue44663] Possible bug in datetime utc

2021-07-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: I don't seem to be able to reproduce this by running this one-liner: from datetime import datetime, timezone; print(datetime.now(timezone.utc).timestamp()); print(datetime.u tcnow().timestamp()); on 3.9.5. How did you achieve this? It looks like the

[issue42861] ipaddress - add ability to get next closest network of any prefix size

2021-07-17 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44663] Possible bug in datetime utc

2021-07-17 Thread Gabriel Costa
New submission from Gabriel Costa : >>> datetime.now(timezone.utc).timestamp() 1626556067.054988 >>> datetime.utcnow().timestamp() 1626566875.174921 Should there be a difference between the two modes? -- components: C API messages: 397733 nosy: gabhcosta priority: normal severity:

[issue42478] ipaddress.IPv4network.interfaces()

2021-07-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: Related (with PR up): https://bugs.python.org/issue42861 -- nosy: +andrei.avk ___ Python tracker ___

[issue41949] Redefinition of HMAC functions prevents static linking

2021-07-17 Thread Gregory Szorc
Gregory Szorc added the comment: I think this was effectively fixed in 3.10 via commit 39258d3595300bc7b952854c915f63ae2d4b9c3e / bpo-43669, which removed code creating the duplicate symbols. It is still a problem in 3.9. But possibly not worth the backport. --

[issue44654] Refactor and clean up the union type implementation

2021-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 03aad3049d1591c76a219dfe089e5367f88f167e by Miss Islington (bot) in branch '3.10': [3.10] bpo-44654: Refactor and clean up the union type implementation (GH-27196) (GH-27219)

[issue44654] Refactor and clean up the union type implementation

2021-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0fd27375cabd12e68a2f12cfeca11a2d5043429e by Serhiy Storchaka in branch 'main': bpo-44654: Refactor and clean up the union type implementation (GH-27196) https://github.com/python/cpython/commit/0fd27375cabd12e68a2f12cfeca11a2d5043429e

[issue44654] Refactor and clean up the union type implementation

2021-07-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25760 pull_request: https://github.com/python/cpython/pull/27219 ___ Python tracker

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2d055ce13250a4074f66a945381a149a3cf8c46f by Serhiy Storchaka in branch '3.10': [3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) (GH-27207)

[issue44592] tkinter focus_get() with non-tkinter Tk widget

2021-07-17 Thread Akuli
Akuli added the comment: Typo in previous message: I meant `widget.focus_get() is None`. It currently means "this application doesn't have focus", while `is not None` currently means "this application has focus". -- ___ Python tracker

[issue44592] tkinter focus_get() with non-tkinter Tk widget

2021-07-17 Thread Akuli
Akuli added the comment: Here are the options: - Do nothing. My program will error in some corner cases. - Change it to return `None`, so `widget.focus_get() is not None` no longer means "this application doesn't have focus", but rather "this application doesn't have focus or the focused

[issue44633] Indexing the union type can return NotImplemented

2021-07-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -25756 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44633] Indexing the union type can return NotImplemented

2021-07-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25759 pull_request: https://github.com/python/cpython/pull/27218 ___ Python tracker ___

[issue43950] Include column offsets for bytecode instructions

2021-07-17 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25758 pull_request: https://github.com/python/cpython/pull/27217 ___ Python tracker ___

[issue44633] Indexing the union type can return NotImplemented

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25756 pull_request: https://github.com/python/cpython/pull/26980 ___ Python tracker ___

[issue44653] Parameter substitution in the union type does not work with typing.Union

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25757 pull_request: https://github.com/python/cpython/pull/26980 ___ Python tracker ___

[issue42469] Space in re's {min, max} should raise an error, rather than fail silently

2021-07-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: I think the biggest issue here is not how to explain it clearly in the docs, but that a lot of users will not confirm this in the docs based on the combination of: 1. c{1,5} is similar to slicing, also similar to python list definition, and python sets,

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread Guido van Rossum
Guido van Rossum added the comment: Many thanks from me too, Ivan. I have enjoyed working with you and will miss you. Come back any time! -- ___ Python tracker ___

[issue42535] unittest.patch confuses modules with base modules

2021-07-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've tested this in both 3.7.7 and 3.9.1 and could not reproduce. -- nosy: +andrei.avk ___ Python tracker ___

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread Ken Jin
Ken Jin added the comment: Thank you for everything you've done over the years for typing and its ecosystem Ivan. Take care, and please don't hesitate to add yourself back in the future if you feel like it. -- ___ Python tracker

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

2021-07-17 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25755 pull_request: https://github.com/python/cpython/pull/27216 ___ Python tracker ___

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2021-07-17 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset f88e138a1aa3b9a9e013963e4fd7d5cce6a0b85c by Ken Jin in branch 'main': bpo-20291: Fix MSVC warnings in getargs.c (GH-27211) https://github.com/python/cpython/commit/f88e138a1aa3b9a9e013963e4fd7d5cce6a0b85c --

[issue44662] Add ability to serialise and annotate types.Union

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- title: Add ability to serialise and annotated types.Union -> Add ability to serialise and annotate types.Union ___ Python tracker

[issue44662] Add ability to serialise and annotated types.Union

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch pull_requests: +25754 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27214 ___ Python tracker

[issue44662] Add ability to serialise and annotated types.Union

2021-07-17 Thread Yurii Karabas
New submission from Yurii Karabas <1998uri...@gmail.com>: It was discussed at https://bugs.python.org/issue44490 -- messages: 397720 nosy: uriyyo priority: normal severity: normal status: open title: Add ability to serialise and annotated types.Union type: enhancement versions: Python

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25753 pull_request: https://github.com/python/cpython/pull/27215 ___ Python tracker ___

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

2021-07-17 Thread Mark Shannon
Mark Shannon added the comment: Can we at least include the fix, until we can come up with a better test? That test fails on 3.9 as well as 3.10 and main. With a 3.9 build and the test in #27194: ./python -m test test_threading -R : 0:00:00 load avg: 0.95 Run tests sequentially 0:00:00 load

[issue42095] plistlib: Add tests that compare with plutil(1)

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

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 689b05c6281ee6bafb9a0c0bf291260efa130f64 by Hasan in branch 'main': bpo-42095: plistlib: Add tests that compare with plutil(1) (#27173) https://github.com/python/cpython/commit/689b05c6281ee6bafb9a0c0bf291260efa130f64 -- nosy:

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d0b2b00c7d5ac3dc18d77bf4fcf607ee98c11650 by Dong-hee Na in branch 'main': bpo-43425: Remove test2to3 from Tools (#26981) https://github.com/python/cpython/commit/d0b2b00c7d5ac3dc18d77bf4fcf607ee98c11650 -- nosy: +lukasz.langa

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25752 pull_request: https://github.com/python/cpython/pull/27214 ___ Python tracker ___

[issue44618] inspect.signature does not work for datetime classes

2021-07-17 Thread Mauricio Villegas
Mauricio Villegas added the comment: I am not sure if this affects all built-in classes, assuming that by built-in it means that `SOMEOBJECT.__class__.__module__ == 'builtins'`. For example I have C++ library that is compiled into a python module using swig. It is available as a docker

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: These were sad PRs to make. Take care, Ivan! -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44618] inspect.signature does not work for datetime classes

2021-07-17 Thread Mauricio Villegas
Mauricio Villegas added the comment: Also happens in python 3.10. === Python 3.10.0b4 === (*args, **kwargs) (self, /, *args, **kwargs) Traceback (most recent call last): ... ValueError: no signature found for builtin type -- versions: +Python 3.10

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

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

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fa674bdea3bbb20ad6ccd95b3849fc4995bc37e0 by Ken Jin in branch '3.9': [3.9] bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (GH-27205) https://github.com/python/cpython/commit/fa674bdea3bbb20ad6ccd95b3849fc4995bc37e0 --

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25751 pull_request: https://github.com/python/cpython/pull/27213 ___ Python tracker ___

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25750 pull_request: https://github.com/python/cpython/pull/27212 ___ Python tracker

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2021-07-17 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 10.0 -> 11.0 pull_requests: +25749 pull_request: https://github.com/python/cpython/pull/27211 ___ Python tracker ___

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 480f29f913cff30329e7b425fd6669f83d6d8af8 by Miss Islington (bot) in branch '3.10': bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (#27204) https://github.com/python/cpython/commit/480f29f913cff30329e7b425fd6669f83d6d8af8

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

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

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset df7c62980d15acd3125dfbd81546dad359f7add7 by Miss Islington (bot) in branch '3.9': bpo-40897:Give priority to using the current class constructor in `inspect.signature` (GH-27177) (GH-27209)

[issue44610] Format issue with strftime and %Y

2021-07-17 Thread Irit Katriel
Irit Katriel added the comment: See also Issue13305. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: Related devguide PR: https://github.com/python/devguide/pull/728 -- ___ Python tracker ___ ___

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +25748 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27210 ___ Python tracker ___

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-07-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25747 pull_request: https://github.com/python/cpython/pull/27209 ___ Python tracker ___

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-07-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ed2db9b5940ccbc0bc72d01bf62d8b3095ccef21 by Łukasz Langa in branch '3.9': bpo-40897: Partially backport GH-22583's refactor of inspect.py to allow bugfix backports (#27193)

[issue44660] email.feedparser Module Lacks Support for Section 3.5 of RFC 6532: message/global Emails with non-identity Content-Transfer-Encodings

2021-07-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +25746 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27208 ___ Python tracker

[issue44633] Indexing the union type can return NotImplemented

2021-07-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -25744 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44653] Parameter substitution in the union type does not work with typing.Union

2021-07-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -25745 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44633] Indexing the union type can return NotImplemented

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 3.0 -> 4.0 pull_requests: +25744 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26980 ___ Python tracker

[issue44659] Remove Ivan from list of typing experts

2021-07-17 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: You can remove me from both. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44653] Parameter substitution in the union type does not work with typing.Union

2021-07-17 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 3.0 -> 4.0 pull_requests: +25745 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26980 ___ Python tracker

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 8.0 -> 9.0 pull_requests: +25743 pull_request: https://github.com/python/cpython/pull/27207 ___ Python tracker

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-17 Thread Dong-hee Na
Dong-hee Na added the comment: I updated the benchmark, and it shows 1.12x faster -- ___ Python tracker ___ ___ Python-bugs-list

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-17 Thread Dong-hee Na
Change by Dong-hee Na : Removed file: https://bugs.python.org/file50154/bench_property.py ___ Python tracker ___ ___ Python-bugs-list

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-17 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file50155/bench_property.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-07-17 Thread Dong-hee Na
Dong-hee Na added the comment: Oops sorry, it was the wrong benchmark, it will be faster.. ;) Mean +- std dev: [property_base] 140 ns +- 5 ns -> [property_vectorcall] 125 ns +- 2 ns: 1.12x faster -- ___ Python tracker