long lines, long string

Aahz Maruch aahz at netcom.com
Wed Jun 28 09:26:05 EDT 2000


In article <j9tcj8.i0b.ln at iiab.soluma.de>,
Holger M. Füßler <fuessler at solutec.de> wrote:
>
>Is there a possibility to put long lines of python-source-code in multiple
>lines (for better clarity)?

myDict = {
  'foo': 1,
  'bar': 2,
  'baz': 3
  }

if myDict[xyzzy] == 'foo' \
  or myDict[xyzzy] == 'bar' \
  or myDict[xyzzy] == 'baz' :

>How can I accomplish the same with strings?

"""
This
is 
a 
long
string
"""
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

The best way to get information on Usenet is not to ask a question,
but to post the wrong information.  --Aahz



More information about the Python-list mailing list