summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-06-08 20:45:57 (GMT)
committerGitHub <noreply@github.com>2024-06-08 20:45:57 (GMT)
commit34f5ae69fe9ab0f5b23311d5c396d0cbb5902913 (patch)
tree59d90b39cb0f53c3ff6870132795f4a150b20fa1 /Misc
parent7c016deae62308dd1b4e2767fc6abf04857c7843 (diff)
downloadcpython-34f5ae69fe9ab0f5b23311d5c396d0cbb5902913.zip
cpython-34f5ae69fe9ab0f5b23311d5c396d0cbb5902913.tar.gz
cpython-34f5ae69fe9ab0f5b23311d5c396d0cbb5902913.tar.bz2
gh-120268: Prohibit passing ``None`` to ``_pydatetime.date.fromtimestamp`` (#120269)
This makes the pure Python implementation consistent with the C implementation.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-06-08-14-36-40.gh-issue-120268.MNpd1q.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-08-14-36-40.gh-issue-120268.MNpd1q.rst b/Misc/NEWS.d/next/Library/2024-06-08-14-36-40.gh-issue-120268.MNpd1q.rst
new file mode 100644
index 0000000..d48d43c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-06-08-14-36-40.gh-issue-120268.MNpd1q.rst
@@ -0,0 +1,2 @@
+Prohibit passing ``None`` to pure-Python :meth:`datetime.date.fromtimestamp`
+to achieve consistency with C-extension implementation.