Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46864>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to