Reduce need of backslash
John Roth
newsgroups at jhrothjr.com
Fri Sep 26 12:40:01 EDT 2003
"Duncan Booth" <duncan at NOSPAMrcp.co.uk> wrote in message
news:Xns9402A53AD8C02duncanrcpcouk at 127.0.0.1...
> Nicolas Fleury <nid_oizo at yahoo.com_remove_the_> wrote in
> news:h4Ycb.75236$PD3.4793080 at nnrp1.uunet.ca:
>
> > I was wondering if the need for \ could be reduce in the language. For
> > example, could a line ending with = or + could be automaticly considered
> > incomplete?
>
> You very rarely need \ as it is. Any parenthesised expression may be split
> across lines without problems.
And you can parenthesize a surprisingly large number of places. One
that I learned just recently was that the entire operand string of the
print statement can be put into parenthesis.
John Roth
>
> --
> Duncan Booth duncan at rcp.co.uk
> int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
> "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list