string.rstrip

John J. Lee jjl at pobox.com
Tue Sep 23 00:42:57 CEST 2003


Erik Max Francis <max at alcyone.com> writes:
[...]
> You're using .rstrip incorrectly.  The second argument to string.rstrip
> is a list of characters, any one of which will be stripped if they are
[...]

Erik means 'a sequence of characters', of course, not a list.


John




More information about the Python-list mailing list