This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients
Date 2006-03-03.17:45:35
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=6380

Totally right.

I have one more concern:

>>> import sys
>>> (sys.maxint+1).__index__()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: long int too large to convert to int
>>> 

whiile I agree that the C API ought to silently truncate
values to fit within the boundaries established by ssize_t,
I think that when calling __index__() from Python, it should
be allowed to return an unbounded value.

Anyway, I haven't had time to whip up code to implement
that, but here's a new patch that adds the test to ISINDEX()
-- thanks for catching that!
History
Date User Action Args
2007-08-23 15:45:59adminlinkissue1436368 messages
2007-08-23 15:45:59admincreate