Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: - terry.reedy
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22077
___
Roundup Robot added the comment:
New changeset 02d6d3a7a181 by Terry Jan Reedy in branch 'default':
Issue #22077: Improve index error messages for bytearrays, bytes, lists, and
http://hg.python.org/cpython/rev/02d6d3a7a181
--
nosy: +python-dev
___
Terry J. Reedy added the comment:
while at it, I changed bytearray messages to include bad type as other do.
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22077
New submission from Claudiu Popa:
For a couple of sequences (bytes, list, tuple, bytearray), the error when using
an invalid sequence index is misleading, because it says that only integers are
allowed, while slices are allowed too.
a = []
a['python']
Traceback (most recent call last):