string.split() documentation incorrect?
Jerry Seutter
jerry.seutter at pason.com
Fri Apr 11 11:52:32 EDT 2003
More information about the Python-list mailing list
Fri Apr 11 11:52:32 EDT 2003
- Previous message (by thread): string.split() documentation incorrect?
- Next message (by thread): string.split() documentation incorrect?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): string.split() documentation incorrect?
- Next message (by thread): string.split() documentation incorrect?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list