# Bug report ### Bug description: ```python import pickle for proto in range(pickle.HIGHEST_PROTOCOL + 1): it = iter(range(0x80000000 ** 32 + -(2**15))) it.__setstate__(2 ** -(2**15) + 1) d = pickle.dumps(it, proto) ``` ``` python: ../Objects/rangeobject.c:243: compute_range_length: Assertion `PyLong_Check(start)' failed. Aborted (core dumped) ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: Linux <!-- gh-linked-prs --> ### Linked PRs * gh-141317 <!-- /gh-linked-prs -->