perl chomp equivalent in python?

Justin Sheehy dworkin at
Thu Feb 10 23:27:59 CET 2000

"Hans Nowak" <hnowak at> writes:

> > Last time I checked, Python wasn't sensitive to extra whitespace at
> > the _end_ of a line.
> With one exception...
> print 1+ \
>       2

Quite true.  I so rarely use backslash-continued lines that this
would never have occurred to me.



More information about the Python-list mailing list