perl chomp equivalent in python?
a.c.a. serier
a.serier at hccnet.nl
Thu Feb 10 15:02:00 EST 2000
Thanks to all who responded.
Allthough I tried strip, I used is as chomp(), i.e. expecting it to change
the argument,
offcourse that doesn't work, because the stripped string is returned (it now
works
also for me too ;-)
The string[:-1] solution works also very well, after looking at it is, I
remembered seeing
something like it in Guido's tutorial :-(
Kees
More information about the Python-list
mailing list