[Python-3000] Should len() clip to sys.maxsize or raise OverflowError?

2008-08-30 Thread Hagen Fürstenau
While __len__() is allowed to return a value of any size, issues 2723 and 3729 need a decision on what len() should do if the value doesn't fit in a Py_ssize_t. In a previous thread (http://mail.python.org/pipermail/python-3000/2008-May/013387.html) Guido wanted len() to "lie" and return sys.maxsi

Re: [Python-3000] Should len() clip to sys.maxsize or raise OverflowError?

2008-08-30 Thread Leif Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Aug 30, 2008 at 11:07 AM, Hagen Fürstenau wrote: > While __len__() is allowed to return a value of any size, issues 2723 > and 3729 need a decision on what len() should do if the value doesn't > fit in a Py_ssize_t. > > In a previous thread >