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 mark.dickinson
Recipients mark.dickinson
Date 2012-11-04.11:27:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352028464.86.0.0930717180418.issue16402@psf.upfronthosting.co.za>
In-reply-to
Content
>>> class A(object):
...     def __index__(self): raise ZeroDivisionError
... 
[66062 refs]
>>> a = A()
[66065 refs]
>>> range(10)[0:a]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method
[66105 refs]
History
Date User Action Args
2012-11-04 11:27:44mark.dickinsonsetrecipients: + mark.dickinson
2012-11-04 11:27:44mark.dickinsonsetmessageid: <1352028464.86.0.0930717180418.issue16402@psf.upfronthosting.co.za>
2012-11-04 11:27:44mark.dickinsonlinkissue16402 messages
2012-11-04 11:27:44mark.dickinsoncreate