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

lac at codespeak.net lac at codespeak.net
Wed Aug 24 13:23:30 CEST 2005


Author: lac
Date: Wed Aug 24 13:23:29 2005
New Revision: 16362

Modified:
   pypy/dist/pypy/objspace/std/stringtype.py
Log:
And because this file is called 'stringtype' not 'strtype' the tool didn't
find a string.__doc__


Modified: pypy/dist/pypy/objspace/std/stringtype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/stringtype.py	(original)
+++ pypy/dist/pypy/objspace/std/stringtype.py	Wed Aug 24 13:23:29 2005
@@ -55,5 +55,9 @@
 
 str_typedef = StdTypeDef("str", basestring_typedef,
     __new__ = newmethod(descr__new__),
+    __doc__ = '''str(object) -> string
+
+Return a nice string representation of the object.
+If the argument is a string, the return value is the same object.'''
     )
 str_typedef.registermethods(globals())



More information about the Pypy-commit mailing list