[issue32300] print(os.environ.keys()) should only print the keys

Serhiy Storchaka report at bugs.python.org
Wed Dec 13 15:29:26 EST 2017


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

Don't make KeysView.__repr__ and ValuesView.__repr__ containing the lists of all keys and values. This will make the repr of the view of a mapping which is a proxy of an external DB containing the full content of that DB, which can be gigabytes. See for example rejected issue21670.

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

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


More information about the Python-bugs-list mailing list