New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
>>> it = iter(range(2**63-10, 2**63-1, 10)) >>> it.__reduce__() (<built-in function iter>, (range(9223372036854775798, -9223372036854775808, 10),), 0) >>> import pickle >>> it2 = pickle.loads(pickle.dumps(it)) >>> list(it) [9223372036854775798] >>> list(it2) [] ---------- components: Library (Lib) messages: 400428 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: Integer overflow in __reduce__ of the range iterator type: behavior versions: Python 3.10, Python 3.11, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45030> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com