2008/9/3 Hagen Fürstenau <[EMAIL PROTECTED]>:
>> That said, I would actually be okay with the status quo (which does
>> raise an OverflowError) as long as we commit to fixing this properly
>> in 2.7 / 3.1, by removing the range restriction (like we've done for
>> other int operations a long time ago).
>
> What should be done when __len__() returns a float? In Python 2.6 the
> behaviour depends on whether the class in new-style or not. (Old-style
> classes raise a TypeError, new-style classes truncate.) Is there any
> good reason for truncating?

That souds like a bug. IMO TypeError is the right response here.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
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

Reply via email to