[issue39079] help() modifies the string module

Mark Dickinson report at bugs.python.org
Tue Dec 17 16:20:41 EST 2019


Mark Dickinson <dickinsm at gmail.com> added the comment:

Here's where `string.letters` is reassigned: https://github.com/python/cpython/blob/5f2c1345a79f205c680ed6e0a6ed44199546d79e/Modules/_localemodule.c#L136-L147

That code looks like it's exercised whenever setlocale is (or possibly just when LC_CTYPE is changed). I haven't yet figured out which part of the help machinery causes that.

----------

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


More information about the Python-bugs-list mailing list