GNU Info

Info Node: (python2.1-ref.info)Implicit line joining

(python2.1-ref.info)Implicit line joining


Next: Blank lines blank line Prev: Explicit line joining Up: Line structure
Enter node , (file) or (file)node

Implicit line joining
---------------------

Expressions in parentheses, square brackets or curly braces can be
split over more than one physical line without using backslashes.  For
example:

     month_names = ['Januari', 'Februari', 'Maart',      # These are the
                    'April',   'Mei',      'Juni',       # Dutch names
                    'Juli',    'Augustus', 'September',  # for the months
                    'Oktober', 'November', 'December']   # of the year

Implicitly continued lines can carry comments.  The indentation of the
continuation lines is not important.  Blank continuation lines are
allowed.  There is no NEWLINE token between implicit continuation
lines.  Implicitly continued lines can also occur within triple-quoted
strings (see below); in that case they cannot carry comments.


automatically generated by info2www version 1.2.2.9