This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Manishearth
Recipients Manishearth
Date 2019-12-18.01:45:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576633528.14.0.930532068678.issue39084@roundup.psfhosted.org>
In-reply-to
Content
Steps to reproduce:

>>> import string
>>> string.letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> help(string)
......
>>> string.letters
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'


The help(string) can also be replaced with locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8")

What's happening here is that any call to setlocale() (which help() calls internally) recomputes string.letters. The recomputation flips the order in the current implementation.
History
Date User Action Args
2019-12-18 01:45:28Manishearthsetrecipients: + Manishearth
2019-12-18 01:45:28Manishearthsetmessageid: <1576633528.14.0.930532068678.issue39084@roundup.psfhosted.org>
2019-12-18 01:45:28Manishearthlinkissue39084 messages
2019-12-18 01:45:28Manishearthcreate