Tin mới
serhiy-storchaka:randrange-index
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
Code ReviewManage code changes
Code QualityEnforce quality at merge
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
Use index() instead of int() to check args of randrange().
Merge branch 'master' into randrange-index
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Raise TypeError instead of ValueError.
Merge branch 'master' into randrange-index
bpo-42222: Modernize integer test/conversion in randrange() #23064
Revert "Raise TypeError instead of ValueError."
Update docs and emit deprecation warning for ValueError.
Merge branch 'master' into randrange-index
Merge branch 'master' into randrange-index
bpo-37319: Improve documentation, code and tests of randrange. (