]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110850: Fix _PyTime_FromSecondsDouble() API (#116606)
authorVictor Stinner <vstinner@python.org>
Mon, 11 Mar 2024 16:35:29 +0000 (17:35 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2024 16:35:29 +0000 (16:35 +0000)
commit113053a070ba753101f73553ef6435c5c6c9f3f7
tree9f97e4dc49ceafd5a464f169d142225e170ab7be
parent2731913dd5234ff5ab630a3b7f1c98ad79d4d9df
gh-110850: Fix _PyTime_FromSecondsDouble() API (#116606)

Return 0 on success. Set an exception and return -1 on error.

Fix os.timerfd_settime(): properly report exceptions on
_PyTime_FromSecondsDouble() failure.

No longer export _PyTime_FromSecondsDouble().
Include/internal/pycore_time.h
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c
Python/pytime.c