Skip to content

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

Closed

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

  1. added
    type-bugAn unexpected behavior, bug, or error
    3.12only security fixes
    3.13only security fixes
    3.14bugs and security fixes
    on Nov 9, 2024
  2. self-assigned this
    on Nov 9, 2024
  3. changed the title [-]Incorrect `itertools.count.__repr__` when count is `sys.maxsize` [/-] [+]Incorrect representation of `itertools.count(sys.maxsize)`[/+] on Nov 9, 2024
  4. added a commit that references this issue on Nov 20, 2024
  5. added a commit that references this issue on Dec 2, 2024
  6. added a commit that references this issue on Dec 2, 2024
  7. added 2 commits that reference this issue on Dec 2, 2024
  8. added a commit that references this issue on Jan 8, 2025
  9. added a commit that references this issue on Jan 12, 2025
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.13only 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