]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-120268: Prohibit passing ``None`` to ``_pydatetime.date.fromtimestamp`...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Jun 2024 09:54:20 +0000 (11:54 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2024 09:54:20 +0000 (12:54 +0300)
commite123f74513151da53bc380bf1ee03c35cec4f4c0
tree55be3e190cb02b1316c8bb4babfa7249ff366fd1
parentb8845369aa76a6b2d4f147243d8451ce00abc661
[3.12] gh-120268: Prohibit passing ``None`` to ``_pydatetime.date.fromtimestamp`` (GH-120269) (GH-120283)

This makes the pure Python implementation consistent with the C implementation.
(cherry picked from commit 34f5ae69fe9ab0f5b23311d5c396d0cbb5902913)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/_pydatetime.py
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2024-06-08-14-36-40.gh-issue-120268.MNpd1q.rst [new file with mode: 0644]