[pypy-svn] r72008 - pypy/trunk/pypy/tool

fijal at codespeak.net fijal at codespeak.net
Wed Mar 10 01:28:17 CET 2010


Author: fijal
Date: Wed Mar 10 01:28:16 2010
New Revision: 72008

Modified:
   pypy/trunk/pypy/tool/pairtype.py
Log:
Avoid copying __metaclass__ and __doc__ (doc is readonly, metaclass we don't always need)


Modified: pypy/trunk/pypy/tool/pairtype.py
==============================================================================
--- pypy/trunk/pypy/tool/pairtype.py	(original)
+++ pypy/trunk/pypy/tool/pairtype.py	Wed Mar 10 01:28:16 2010
@@ -34,7 +34,7 @@
         if name == '__extend__':
             for cls in bases:
                 for key, value in dict.items():
-                    if key == '__module__':
+                    if key == '__module__' or key == '__metaclass__' or key == '__doc__':
                         continue
                     # XXX do we need to provide something more for pickling?
                     setattr(cls, key, value)



More information about the Pypy-commit mailing list