Skip to content

[3.14] gh-160326: Raise ValueError for a NaN timeout in Condition.wait() (GH-160327) - #160417

Merged
gpshead merged 1 commit into
python:3.14from
miss-islington:backport-3387b19-3.14
Oct 23, 2026
Merged

gpshead merged 1 commit into
python:3.14from
miss-islington:backport-3387b19-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

A NaN timeout was treated as zero, which made the deadline loops built
on Condition.wait(), such as Queue.get() and Semaphore.acquire(), spin
without ever timing out.
(cherry picked from commit 3387b19)

Co-authored-by: Gregory P. Smith [email protected]

…() (pythonGH-160327)

A NaN timeout was treated as zero, which made the deadline loops built
on Condition.wait(), such as Queue.get() and Semaphore.acquire(), spin
without ever timing out.
(cherry picked from commit 3387b19)

Co-authored-by: Gregory P. Smith <[email protected]>
@gpshead
gpshead enabled auto-merge (squash) October 23, 2026 06:20
@gpshead
gpshead merged commit 3234061 into python:3.14 Oct 23, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-3387b19-3.14 branch October 23, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants