mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
732ad44cec
commit
4d0d1c3866
8 changed files with 17 additions and 20 deletions
1
Doc/data/stable_abi.dat
generated
1
Doc/data/stable_abi.dat
generated
|
@ -1,5 +1,4 @@
|
|||
role,name,added,ifdef_note,struct_abi_kind
|
||||
var,PY_TIMEOUT_MAX,3.2,,
|
||||
macro,PY_VECTORCALL_ARGUMENTS_OFFSET,3.12,,
|
||||
function,PyAIter_Check,3.10,,
|
||||
function,PyArg_Parse,3.2,,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue