[issue33422] Fix and update string/byte literals in help()

Serhiy Storchaka report at bugs.python.org
Fri May 4 06:04:28 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Interesting, I didn't know that pydoc supports this.

Specifying all possible prefixes is cumbersome and errorprone. The number of combinations grows exponentially with adding new letters. I suggest either to specify only lower-case variants and generate all variants with upper-case letters (as it done in the tokenize module) or always calls the lower() method when look up in the symbols dictionary.

It may be worth to add a special topic for f-strings.

----------
nosy: +eric.smith, serhiy.storchaka

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


More information about the Python-bugs-list mailing list