[pypy-svn] r13499 - pypy/dist/pypy/annotation

tismer at codespeak.net tismer at codespeak.net
Fri Jun 17 01:40:51 CEST 2005


Author: tismer
Date: Fri Jun 17 01:40:50 2005
New Revision: 13499

Modified:
   pypy/dist/pypy/annotation/pairtype.py
Log:
avoid override of the __module__ attribute.
XXX it is not yet clear to me if we need
to do something else, to enable pickling

Modified: pypy/dist/pypy/annotation/pairtype.py
==============================================================================
--- pypy/dist/pypy/annotation/pairtype.py	(original)
+++ pypy/dist/pypy/annotation/pairtype.py	Fri Jun 17 01:40:50 2005
@@ -9,6 +9,9 @@
         if name == '__extend__':
             cls = bases[0]   # override data into the existing base
             for key, value in dict.items():
+                if key == '__module__':
+                    continue
+                    # XXX do we need to provide something more for pickling?
                 setattr(cls, key, value)
             return None
         else:



More information about the Pypy-commit mailing list