[pypy-svn] r16358 - pypy/dist/pypy/objspace/std

lac at codespeak.net lac at codespeak.net
Wed Aug 24 12:31:49 CEST 2005


Author: lac
Date: Wed Aug 24 12:31:48 2005
New Revision: 16358

Modified:
   pypy/dist/pypy/objspace/std/typetype.py
Log:
Typetype is not amenable to the patching by function trick, needs 
to be done by hand.


Modified: pypy/dist/pypy/objspace/std/typetype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/typetype.py	(original)
+++ pypy/dist/pypy/objspace/std/typetype.py	Wed Aug 24 12:31:48 2005
@@ -98,6 +98,9 @@
         return space.w_None
 
 def descr__doc(space, w_type):
+    if space.is_w(w_type, space.w_type):
+        return space.wrap("""type(object) -> the object's type
+type(name, bases, dict) -> a new type""")
     w_type = _check(space, w_type)
     w_result = w_type.getdictvalue(space, '__doc__')
     if w_result is None:



More information about the Pypy-commit mailing list