Mark Dickinson <dicki...@gmail.com> added the comment: There's another problem with range_reverse: it uses a short range (all fields longs) if start, stop and step fit into a C long. But it doesn't check whether the length fits into a C long. This leads to the following:
>>> list(reversed(range(-1, 2**63-1))) [] (this is on a 64-bit machine; for a 32-bit machine the same failure should occur with 2**31-1 in place of 2**63-1). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7298> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com