diff -r 677a9326b4d4 Lib/os.py --- a/Lib/os.py Mon Jul 09 18:16:11 2012 -0700 +++ b/Lib/os.py Mon Jul 16 22:09:10 2012 +0300 @@ -695,6 +695,9 @@ def copy(self): return dict(self) + def __copy__(self): + return self.copy() + def setdefault(self, key, value): if key not in self: self[key] = value