summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-16 15:08:05 (GMT)
committerGitHub <noreply@github.com>2020-11-16 15:08:05 (GMT)
commitae6cd7cfdab0599139002c526953d907696d9eef (patch)
treefbfcfd94f1f73fa6e38a50dc5112a707e59d4c6b /Misc/NEWS.d
parent5909a494cd3ba43143b28bd439773ed85a485dfc (diff)
downloadcpython-ae6cd7cfdab0599139002c526953d907696d9eef.zip
cpython-ae6cd7cfdab0599139002c526953d907696d9eef.tar.gz
cpython-ae6cd7cfdab0599139002c526953d907696d9eef.tar.bz2
bpo-37205: time.time() cannot fail with fatal error (GH-23314)
time.time(), time.perf_counter() and time.monotonic() functions can no longer fail with a Python fatal error, instead raise a regular Python exception on failure. Remove _PyTime_Init(): don't check system, monotonic and perf counter clocks at startup anymore. On error, _PyTime_GetSystemClock(), _PyTime_GetMonotonicClock() and _PyTime_GetPerfCounter() now silently ignore the error and return 0. They cannot fail with a Python fatal error anymore. Add py_mach_timebase_info() and win_perf_counter_frequency() sub-functions.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2020-11-16-15-08-12.bpo-37205.Wh5svI.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-11-16-15-08-12.bpo-37205.Wh5svI.rst b/Misc/NEWS.d/next/Library/2020-11-16-15-08-12.bpo-37205.Wh5svI.rst
new file mode 100644
index 0000000..9268f2d
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-11-16-15-08-12.bpo-37205.Wh5svI.rst
@@ -0,0 +1,3 @@
+:func:`time.time()`, :func:`time.perf_counter()` and
+:func:`time.monotonic()` functions can no longer fail with a Python fatal
+error, instead raise a regular Python exception on failure.