[issue35077] Make TypeError message less ambiguous

2018-10-26 Thread coyot linden
New submission from coyot linden : 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

[issue35077] Make TypeError message less ambiguous

2018-10-26 Thread coyot linden
coyot linden added the comment: You're welcome. I filed against 3.5 because that's what I have in our env at the moment and I couldn't test and thus assert the issue in later versions. Happy to see the problem addressed more generally. The abstraction of the problem is the ambiguity

[issue35077] Make TypeError message less ambiguous

2018-10-26 Thread coyot linden
coyot linden added the comment: The problem I have with "So only the 'index of string' interpretation makes sense." is that by the time a developer has that understanding, they won't get this error. So it's fine and logical to say from the behind-the-scenes view that only sequ

[issue35077] Make TypeError message less ambiguous

2018-10-29 Thread coyot linden
coyot linden added the comment: Sure, this can wait to the next release. I don't see it as groundshatteringly ;) urgent. -- ___ Python tracker <https://bugs.python.org/issue35

[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

2021-03-18 Thread coyot linden
coyot linden added the comment: Ran into this also, got: AH02429: Response header name '

[issue35077] Make TypeError message less ambiguous

2021-02-24 Thread coyot linden
coyot linden added the comment: 3.8 has come and gone, resubmitting this for 3.10 -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue35