[issue39227] OverflowError in len(range(2**63))

2020-01-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue39227] OverflowError in len(range(2**63))

2020-01-05 Thread Mark Dickinson
Mark Dickinson added the comment: (See also #21444) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue39227] OverflowError in len(range(2**63))

2020-01-05 Thread Mark Dickinson
Mark Dickinson added the comment: Duplicate of #12159? -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39227] OverflowError in len(range(2**63))

2020-01-05 Thread Zac Hatfield-Dodds
New submission from Zac Hatfield-Dodds : The value for `len` internally passes through an `ssize_t`, which means that it raises OverflowError for (very) large collections. This is admittedly only possible with collections such as `range` that do not store all their elements in memory, but it