line continuations with backslash

Skip Montanaro skip at pobox.com
Sat Aug 25 09:24:27 EDT 2001


    Tim> You don't need the "+" signs there; as in C, adjacent string
    Tim> literals are catenated at compile-time.

so why not this then:

    x = long("123"
             "456"
             "789")

which saves all the splitting and joining and is (nearly) as readable?

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list