Message14932
Logged In: YES
user_id=163326
Neil, I don't think this was implemented in the 2.2
maintenance branch. That's why I'm reopening this. At least
for my 2.2 Pythons string.strip accepts one parameter only:
Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import string
>>> string.strip("test", "t")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: strip() takes exactly 1 argument (2 given)
>>>
and
Python 2.2.2 (#1, Feb 9 2003, 13:22:07)
[GCC 3.2.1 [FreeBSD] 20021119 (release)] on freebsd5
Type "help", "copyright", "credits" or "license" for more
information.
>>> import string
>>> string.strip("test", "t")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: strip() takes exactly 1 argument (2 given)
Confused. |
|
Date |
User |
Action |
Args |
2007-08-23 14:11:37 | admin | link | issue697220 messages |
2007-08-23 14:11:37 | admin | create | |
|