[pypy-svn] r77057 - pypy/branch/fast-forward/pypy/objspace/std
afa at codespeak.net
afa at codespeak.net
Tue Sep 14 10:17:43 CEST 2010
Author: afa
Date: Tue Sep 14 10:17:42 2010
New Revision: 77057
Modified:
pypy/branch/fast-forward/pypy/objspace/std/stringtype.py
Log:
Add keyword arguments to str.encode and str.decode
Modified: pypy/branch/fast-forward/pypy/objspace/std/stringtype.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/stringtype.py (original)
+++ pypy/branch/fast-forward/pypy/objspace/std/stringtype.py Tue Sep 14 10:17:42 2010
@@ -252,6 +252,7 @@
' mapped through the given\ntranslation table, which'
' must be a string of length 256.')
str_decode = SMM('decode', 3, defaults=(None, None),
+ argnames=['encoding', 'errors'],
doc='S.decode([encoding[,errors]]) -> object\n\nDecodes S'
' using the codec registered for encoding. encoding'
' defaults\nto the default encoding. errors may be'
@@ -262,6 +263,7 @@
' name registerd with codecs.register_error that'
' is\nable to handle UnicodeDecodeErrors.')
str_encode = SMM('encode', 3, defaults=(None, None),
+ argnames=['encoding', 'errors'],
doc='S.encode([encoding[,errors]]) -> object\n\nEncodes S'
' using the codec registered for encoding. encoding'
' defaults\nto the default encoding. errors may be'
More information about the Pypy-commit
mailing list