[pypy-svn] r38738 - pypy/dist/pypy/module/__builtin__

arigo at codespeak.net arigo at codespeak.net
Tue Feb 13 19:18:15 CET 2007


Author: arigo
Date: Tue Feb 13 19:18:12 2007
New Revision: 38738

Modified:
   pypy/dist/pypy/module/__builtin__/app_descriptor.py
Log:
This is a hopefully temporary hack to work around inspect.getmodule()
as used by doctest.  Hum.


Modified: pypy/dist/pypy/module/__builtin__/app_descriptor.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/app_descriptor.py	(original)
+++ pypy/dist/pypy/module/__builtin__/app_descriptor.py	Tue Feb 13 19:18:12 2007
@@ -30,6 +30,8 @@
     def __get__(self, obj, objtype=None):
         return self._f
 
+staticmethod.__module__ = None
+
 
 class classmethod(object):
     """classmethod(function) -> class method
@@ -63,6 +65,7 @@
 def dummy(): pass
 MethodType = type(dummy.__get__(42))
 del dummy
+classmethod.__module__ = None
 
 # It's difficult to have a class that has both a docstring and a slot called
 # '__doc__', but not impossible...
@@ -142,6 +145,7 @@
         self.fdel(obj)
 
 docstring.capture(property, 'slot__doc__')
+property.__module__ = None
 
 
 # super is a modified version from Guido's tutorial



More information about the Pypy-commit mailing list