]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-67795: Accept any real numbers as timestamp and timeout (GH-139224)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 23 Sep 2025 18:31:42 +0000 (21:31 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Sep 2025 18:31:42 +0000 (21:31 +0300)
commit1a2e00c97acfe9f797228b836e2345f630d07b8e
treed38c5a11974fbc3b6016021f082501bab1e7b493
parent6ec058a1f7fcc016fa3b7432bcd0aa6e7d2b21ce
gh-67795: Accept any real numbers as timestamp and timeout (GH-139224)

Functions that take timestamp or timeout arguments now accept any
real numbers (such as Decimal and Fraction), not only integers or floats,
although this does not improve precision.
20 files changed:
Doc/library/datetime.rst
Doc/library/os.rst
Doc/library/select.rst
Doc/library/signal.rst
Doc/library/socket.rst
Doc/library/threading.rst
Doc/library/time.rst
Doc/whatsnew/3.15.rst
Lib/test/datetimetester.py
Lib/test/test_os.py
Lib/test/test_socket.py
Lib/test/test_time.py
Misc/NEWS.d/next/Library/2025-09-22-11-30-45.gh-issue-67795.fROoZt.rst [new file with mode: 0644]
Modules/clinic/selectmodule.c.h
Modules/clinic/signalmodule.c.h
Modules/posixmodule.c
Modules/selectmodule.c
Modules/signalmodule.c
Modules/socketmodule.c
Python/pytime.c