long string constants

Oleg Broytmann phd at phd.pp.ru
Mon Nov 12 05:17:57 EST 2001


On Mon, Nov 12, 2001 at 11:08:56AM +0100, Holger Fuessler wrote:
> Now my question. Is it possible to spread very long string constants
> over multiple lines?.

"""Very long strings
are in triple quotes"""

'''You can use also
triple apostrophes'''

   No continuation required.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list