[pypy-svn] r11557 - pypy/branch/non-fake-unicode/pypy/objspace/std

ac at codespeak.net ac at codespeak.net
Thu Apr 28 09:28:30 CEST 2005


Author: ac
Date: Thu Apr 28 09:28:29 2005
New Revision: 11557

Modified:
   pypy/branch/non-fake-unicode/pypy/objspace/std/unicodetype.py
Log:
Add docstring.

Modified: pypy/branch/non-fake-unicode/pypy/objspace/std/unicodetype.py
==============================================================================
--- pypy/branch/non-fake-unicode/pypy/objspace/std/unicodetype.py	(original)
+++ pypy/branch/non-fake-unicode/pypy/objspace/std/unicodetype.py	Thu Apr 28 09:28:29 2005
@@ -79,5 +79,10 @@
 
 unicode_typedef = StdTypeDef("unicode", basestring_typedef,
     __new__ = newmethod(descr__new__),
+    __doc__ = '''unicode(string [, encoding[, errors]]) -> object
+
+Create a new Unicode object from the given encoded string.
+encoding defaults to the current default string encoding.
+errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.'''
     )
 unicode_typedef.registermethods(globals())



More information about the Pypy-commit mailing list