perl chomp equivalent in python?

Justin Sheehy dworkin at ccs.neu.edu
Thu Feb 10 17:27:59 EST 2000


"Hans Nowak" <hnowak at cuci.nl> 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.

-Justin

 




More information about the Python-list mailing list