On Mon, 31 Jan 2005 14:09:10 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: > Use triple-quoting.
An example, for the sake of examples: Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> string = """ " ' " ' " ' " ' \""" """ >>> string ' " \' " \' " \' " \' """ ' >>> string = """ ... " ... " ... " ... ' ... ' ... ' ... \""" ... "\"" ... ""\" ... """ >>> string '\n"\n"\n"\n\'\n\'\n\'\n"""\n"""\n"""\n' -- Daniel Bickett dbickett at gmail.com http://heureusement.org/ -- http://mail.python.org/mailman/listinfo/python-list