bpo-42222: Modernize integer test/conversion in randrange() by rhettinger · Pull Request #23064 · python/cpython · GitHub

github.com

Tin mới

rhettinger:fast_randrange

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

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

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Use index() instead of testing int(x)==x

awaiting core review

Deprecate float arguments and the ValueError

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

bpo-37319: Deprecated support of non-integer arguments in random.randrange(). #19112

github-actions Bot commented Dec 16, 2020
github-actions Bot commented Dec 16, 2020

github-actions Bot commented Dec 16, 2020

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Add more detail to blurb

Cover the case with a unit step

More concise blurb

bpo-42222: Modernize integer test/conversion in randrange() (

bpo-46066: Deprecate kwargs syntax for TypedDict definitions #31126