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 serhiy.storchaka
Recipients methane, serhiy.storchaka
Date 2022-02-26.12:14:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645877683.95.0.994605461376.issue46864@roundup.psfhosted.org>
In-reply-to
Content
I think it is a legacy of Python 2. Attributes and variable names are Unicode strings in Python 3, so the main reason of this optimization is no longer relevant.

But some programs can still work with encoded bytes instead of strings. In particular os.environ and os.environb are implemented as dict of bytes on non-Windows.
History
Date User Action Args
2022-02-26 12:14:43serhiy.storchakasetrecipients: + serhiy.storchaka, methane
2022-02-26 12:14:43serhiy.storchakasetmessageid: <1645877683.95.0.994605461376.issue46864@roundup.psfhosted.org>
2022-02-26 12:14:43serhiy.storchakalinkissue46864 messages
2022-02-26 12:14:43serhiy.storchakacreate