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

ludal at codespeak.net ludal at codespeak.net
Tue Jan 25 18:16:19 CET 2005


Author: ludal
Date: Tue Jan 25 18:16:18 2005
New Revision: 8584

Modified:
   pypy/dist/pypy/objspace/std/stringtype.py
Log:
* fix default parameters for strip, lstrip, rstrip


Modified: pypy/dist/pypy/objspace/std/stringtype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/stringtype.py	(original)
+++ pypy/dist/pypy/objspace/std/stringtype.py	Tue Jan 25 18:16:18 2005
@@ -25,9 +25,9 @@
 str_rindex     = MultiMethod('rindex', 4, defaults=(0, maxint))
 str_replace    = MultiMethod('replace', 4, defaults=(-1,))
 str_zfill      = MultiMethod('zfill', 2)
-str_strip      = MultiMethod('strip',  2, defaults=('', ' '))
-str_rstrip     = MultiMethod('rstrip', 2, defaults=('', ' '))
-str_lstrip     = MultiMethod('lstrip', 2, defaults=('', ' '))
+str_strip      = MultiMethod('strip',  2, defaults=(None,))
+str_rstrip     = MultiMethod('rstrip', 2, defaults=(None,))
+str_lstrip     = MultiMethod('lstrip', 2, defaults=(None,))
 str_center     = MultiMethod('center', 2, )
 str_count      = MultiMethod('count', 4, defaults=(0, maxint))      
 str_endswith   = MultiMethod('endswith', 2)   #[optional arguments not supported now]



More information about the Pypy-commit mailing list