← 返回首页
Modernize integer test/conversion in randrange() · Issue #86388 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Modernize integer test/conversion in randrange() #86388

New issue
New issue

Description

BPO 42222
Nosy @tim-one, @rhettinger, @terryjreedy, @encukou, @ambv, @serhiy-storchaka, @vedgar
PRs
  • bpo-42222: Modernize integer test/conversion in randrange() #23064
  • bpo-42222: Remove deprecated support for non-integer values #28983
  • bpo-42222: Improve tests for invalid argument types in randrange() #29021
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/rhettinger' closed_at = <Date 2020-12-28.19:11:34.467> created_at = <Date 2020-10-31.17:27:12.134> labels = ['library', '3.11'] title = 'Modernize integer test/conversion in randrange()' updated_at = <Date 2022-02-03.10:41:29.426> user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2022-02-03.10:41:29.426> actor = 'petr.viktorin' assignee = 'rhettinger' closed = True closed_date = <Date 2020-12-28.19:11:34.467> closer = 'rhettinger' components = ['Library (Lib)'] creation = <Date 2020-10-31.17:27:12.134> creator = 'rhettinger' dependencies = [] files = [] hgrepos = [] issue_num = 42222 keywords = ['patch'] message_count = 16.0 messages = ['380082', '380083', '380084', '380085', '380086', '380089', '380096', '380099', '380111', '380498', '380499', '383776', '383916', '404088', '404327', '412435'] nosy_count = 7.0 nosy_names = ['tim.peters', 'rhettinger', 'terry.reedy', 'petr.viktorin', 'lukasz.langa', 'serhiy.storchaka', 'veky'] pr_nums = ['23064', '28983', '29021'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue42222' versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.11only security fixesstdlibStandard Library Python modules in the Lib/ directory

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.