>> > This is a bug, right? >> >> I'd call it an implementation limitation. > > This is because I'm in a 32 bit machine?
Right. The assumption is that you typically use the range elements to index into some collections, and you can't have collections with more than 2**32 elements (actually, address space is exhausted at 2**29 elements already, except for str and unicode). It would be possible to make it support larger ranges, but then the common case would get slower, and the code would be more convoluted. >>>> n = 10000000000000000000 >>>> 2**32 > n > False >>>> 2**64 > n > True > > Should it work in a 64 bit hardware? No: py> 2**63 > n False The largest possible value value of Py_ssize_t is 2**63-1. See sys.maxsize. Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com