SIGN IN SIGN UP

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.
V
Victor Stinner committed
4d0d1c3866cc408ff3382a9a0220ac0e4f2b3b34
Parent: 732ad44
Committed by GitHub <noreply@github.com> on 10/2/2023, 4:07:56 PM