[issue22077] Improve the error message for various sequences

2014-08-01 Thread Terry J. Reedy
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 ___

[issue22077] Improve the error message for various sequences

2014-08-01 Thread Roundup Robot
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 ___

[issue22077] Improve the error message for various sequences

2014-08-01 Thread Terry J. Reedy
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

[issue22077] Improve the error message for various sequences

2014-07-26 Thread Claudiu Popa
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):