# Bug report ### Bug description: ```sh ./python -c 'import sys; import itertools; print(itertools.count(sys.maxsize))' count(<NULL>) ``` This aborts on DEBUG builds. See https://github.com/python/cpython/issues/126595#issuecomment-2466184019. 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_ <!-- gh-linked-prs --> ### Linked PRs * gh-126620 * gh-127048 * gh-127508 * gh-127510 <!-- /gh-linked-prs -->
Bug report
Bug description:
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
itertools.count(sys.maxsize)#126620