Skip to content

Incorrect representation of itertools.count(sys.maxsize) #126618

Description

@picnixz

Bug report

Bug description:

./python -c 'import sys; import itertools; print(itertools.count(sys.maxsize))'
count(<NULL>)

This aborts on DEBUG builds. See #126595 (comment).

I'd like to address this issue separately since the free-threaded code would be different.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions