Repository navigation
Incorrect exception message in Barrier.__init__ #129403
Copy link
Copy link
Closed
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixeseasystdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jan 28, 2025 Locked-chess-official commented
on Jan 28, 2025 ContributorAuthorMore actionsI think that it maybe a wrong tips bug. The judgement statement is "if parties <1'", but the exception's tips is "parties must be > 0".
- changed the title
[-]0.5<0[/-][+]Incorrect exception message in `Barrier.__init__`[/+]on Jan 28, 2025 - addedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes
on Jan 28, 2025 - added a commit that references this issue
on Jan 30, 2025
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixeseasystdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
Yes. As you see 0.5 is below 0.
To solve this problem, adding this sentence is viable.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
ValueErrormessages inasyncio.Barrierandthreading.Barrier(GH-129419) #129468ValueErrormessages inasyncio.Barrierandthreading.Barrier(GH-129419) #129469