string.rstrip

John J. Lee jjl at pobox.com
Mon Sep 22 18:42:57 EDT 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