[New-bugs-announce] [issue35077] Make TypeError message less ambiguous

coyot linden report at bugs.python.org
Fri Oct 26 11:52:43 EDT 2018


New submission from coyot linden <coyot at lindenlab.com>:

The TypeError message:

TypeError: string indices must be integers

is ambiguously written. While some may understand the intent, others will read it as confusingly saying that strings must be integers since dicts among other things do have string indices.  Suggest changing the message to:

TypeError: indices of strings must be integers

----------
messages: 328565
nosy: coyot
priority: normal
severity: normal
status: open
title: Make TypeError message less ambiguous
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35077>
_______________________________________


More information about the New-bugs-announce mailing list