R. David Murray <rdmur...@bitdance.com> added the comment:

os.environ is not a dictionary, so it isn't all that surprising that a shallow 
copy doesn't behave like a shallow copy of a dictionary.  deepcopy does what 
you'd expect, as does os.environ.copy().

Perhaps it is worth improving this by adding a __copy__ method to os.environ.  
Someone would need to propose a patch, and it would be an enhancement.

----------
nosy: +r.david.murray
type: behavior -> enhancement
versions: +Python 3.4 -Python 2.7

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

Reply via email to