big text strings

Fredrik Lundh fredrik at pythonware.com
Wed Apr 25 12:42:41 EDT 2001


>>> message = """
I want to have big text strings in my python scripts, whole paragraphs in
length.  I do not want to have to insert \ characters at every line.  Is
this possible?

The application is a text adventure game.  I want the big paragraph text
descriptions to be close to the program logic that governs them, I don't
want to stick them off in some special file or database somewhere.  That
might be a good idea for localization, but we don't know that the game will
ever be translated into another language, and it'll be a pain in the ass for
development to have the text separate.
"""

>>> print len(message)
576

Cheers /F





More information about the Python-list mailing list