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 arigo
Recipients
Date 2003-02-25.15:27:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=4771

a very far-fetched bug...

>>> slice(-3058, 0, -1).indices(20)
(-1, 5, -1)
>>> slice(-30589138798749473891743819L, 0, -1).indices(20)
(0, 5, -1)

this is due to _PyEval_SliceIndex() which "rounds" very large negative 
values up to 0.  Of course I don't know who would care, because in both 
cases 'range(*slice(...).indices(20))' returns an empty list.
History
Date User Action Args
2007-08-23 15:00:49adminlinkissue400998 messages
2007-08-23 15:00:49admincreate