Message165637
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. |
|
Date |
User |
Action |
Args |
2012-07-16 16:53:36 | r.david.murray | set | recipients:
+ r.david.murray, htgoebel |
2012-07-16 16:53:36 | r.david.murray | set | messageid: <1342457616.3.0.297384280498.issue15373@psf.upfronthosting.co.za> |
2012-07-16 16:53:35 | r.david.murray | link | issue15373 messages |
2012-07-16 16:53:35 | r.david.murray | create | |
|