string.split() documentation incorrect?
John Abel
john.abel at pa.press.net
Fri Apr 11 12:39:15 EDT 2003
This looks like a bug with 2.2.2. I can reproduce it with 2.2.2 (Win32).
If I import the string,py from 2.3, it works fine.
Regards
John
----- Original Message -----
From: "Jerry Seutter" <jerry.seutter at pason.com>
To: <python-list at python.org>
Sent: Friday, April 11, 2003 4:52 PM
Subject: string.split() documentation incorrect?
> I'm trying to use string.strip to remove the comma off the end of
> a string, eg:
>
> string.strip("id INT NOT NULL,", ",")
>
> The current documentation says I can do this. Python 2.2.2 gives
> the following error:
>
> >>> strip(' hello ', ',')
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: strip() takes exactly 1 argument (2 given)
>
> So, I think either the documentation is incorrect or there is
> a bug. Thoughts?
>
> Jerry Seutter
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list