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 py.user
Recipients py.user
Date 2011-06-21.03:57:16
SpamBayes Score 3.903636e-08
Marked as misclassified No
Message-id <1308628637.29.0.156287318778.issue12381@psf.upfronthosting.co.za>
In-reply-to
Content
>>> bytearray(b'abc').count(bytearray(b''), None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method
>>> bytearray(b'abc').find(bytearray(b''), None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method
>>> bytearray(b'abc').index(bytearray(b''), None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method


and duplicate issues (endswith and startswith):

>>> bytearray(b'abc').endswith(bytearray(b''), None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method
>>> bytearray(b'abc').startswith(bytearray(b''), None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method
>>>
History
Date User Action Args
2011-06-21 03:57:17py.usersetrecipients: + py.user
2011-06-21 03:57:17py.usersetmessageid: <1308628637.29.0.156287318778.issue12381@psf.upfronthosting.co.za>
2011-06-21 03:57:16py.userlinkissue12381 messages
2011-06-21 03:57:16py.usercreate