string.split() documentation incorrect?

Jerry Seutter jerry.seutter at pason.com
Fri Apr 11 11:52:32 EDT 2003


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






More information about the Python-list mailing list