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

Cheryl Sabella report at bugs.python.org
Thu Dec 14 19:48:59 EST 2017


Cheryl Sabella <chekat2 at gmail.com> added the comment:

I'm missing something here, so please forgive me for asking, but why is it bad to add:

    def keys(self):
        return self._data.keys()

    def values(self):
        return self._data.values()

    def items(self):
        return self._data.items()

to the _Environ class?

----------

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


More information about the Python-bugs-list mailing list