Re: os.environ.copy()['COPY_HUH'] = "not really"

April 30, 2002
4:30 p.m.
Here's the problem:
It's not a real dictionary, but an os._Environ class. Copying it creates instances of the same class, and that class' behavior is to insert the item in the environment. I belive this should be avoided in this case, returning a true dictionary from copy(). I'll send a patch to SourceForge, if you haven't done so yet. -- Gustavo Niemeyer [ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
8334
Age (days ago)
8334
Last active (days ago)
1 comments
1 participants
participants (1)
-
Gustavo Niemeyer