perl chomp equivalent in python?

Justin Sheehy dworkin at ccs.neu.edu
Thu Feb 10 23:27:59 CET 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