This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author draghuram
Recipients draghuram, niemeyer
Date 2007-10-16.19:07:05
SpamBayes Score 0.017189726
Marked as misclassified No
Message-id <1192561625.69.0.341116279226.issue1287@psf.upfronthosting.co.za>
In-reply-to
Content
The following patch solves the problem (with the latest from trunk). I
only tested on Linux. I couldn't reproduce the problem with latest py3k
(again, on Linux).

===================================================================
--- Lib/os.py   (revision 58221)
+++ Lib/os.py   (working copy)
@@ -446,6 +446,9 @@
                 def __delitem__(self, key):
                     unsetenv(key)
                     del self.data[key.upper()]
+                def pop(self, key):
+                    unsetenv(key)
+                    return UserDict.IterableUserDict.pop(self, key)
                 def clear(self):
                     for key in self.data.keys():
                         unsetenv(key)
@@ -513,6 +516,9 @@
                         del self.data[key]
             def copy(self):
                 return dict(self)
+            def pop(self, key):
+                unsetenv(key)
+                return UserDict.IterableUserDict.pop(self, key)
 
 
     environ = _Environ(environ)
History
Date User Action Args
2007-10-16 19:07:06draghuramsetspambayes_score: 0.0171897 -> 0.017189726
recipients: + draghuram, niemeyer
2007-10-16 19:07:05draghuramsetspambayes_score: 0.0171897 -> 0.0171897
messageid: <1192561625.69.0.341116279226.issue1287@psf.upfronthosting.co.za>
2007-10-16 19:07:05draghuramlinkissue1287 messages
2007-10-16 19:07:05draghuramcreate