Message347565
To avoid such questions, bug reports should contain exception messages and usually at least some of the tracebacks.
>>> ''[0]
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
''[0]
IndexError: string index out of range
>>> x=None
>>> x[0]
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
x[0]
TypeError: 'NoneType' object is not subscriptable
IndexError should mean object was indexable.
Operations on None should give TypeError. |
|
Date |
User |
Action |
Args |
2019-07-09 16:32:54 | terry.reedy | set | recipients:
+ terry.reedy, barry, r.david.murray, maxking |
2019-07-09 16:32:54 | terry.reedy | set | messageid: <1562689974.11.0.0804718903833.issue37491@roundup.psfhosted.org> |
2019-07-09 16:32:54 | terry.reedy | link | issue37491 messages |
2019-07-09 16:32:53 | terry.reedy | create | |
|