diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-02 16:07:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 16:07:56 (GMT) |
commit | 4d0d1c3866cc408ff3382a9a0220ac0e4f2b3b34 (patch) | |
tree | e64710870fc9e41b50cba8b563e2a509ea39309a /PC | |
parent | 732ad44cec971be5255b1accbac6555d3615c2bf (diff) | |
download | cpython-4d0d1c3866cc408ff3382a9a0220ac0e4f2b3b34.zip cpython-4d0d1c3866cc408ff3382a9a0220ac0e4f2b3b34.tar.gz cpython-4d0d1c3866cc408ff3382a9a0220ac0e4f2b3b34.tar.bz2 |
gh-110014: Remove PY_TIMEOUT_MAX from limited C API (#110217)
If the timeout is greater than PY_TIMEOUT_MAX,
PyThread_acquire_lock_timed() uses a timeout of PY_TIMEOUT_MAX
microseconds, which is around 280.6 years. This case is unlikely and
limiting a timeout to 280.6 years sounds like a reasonable trade-off.
The constant PY_TIMEOUT_MAX is not used in PyPI top 5,000 projects.
Diffstat (limited to 'PC')
-rwxr-xr-x | PC/python3dll.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c index 75728c7..2c1cc80 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -768,7 +768,6 @@ EXPORT_DATA(Py_FileSystemDefaultEncodeErrors) EXPORT_DATA(Py_FileSystemDefaultEncoding) EXPORT_DATA(Py_GenericAliasType) EXPORT_DATA(Py_HasFileSystemDefaultEncoding) -EXPORT_DATA(PY_TIMEOUT_MAX) EXPORT_DATA(Py_UTF8Mode) EXPORT_DATA(Py_Version) EXPORT_DATA(PyBaseObject_Type) |