next up previous contents
Next: Regular Expressions Up: Recent Additions Previous: Reduce.

Continuation Lines Without Backslashes

While the general mechanism for continuation of a source line on the next physical line remains to place a backslash on the end of the line, expressions inside matched parentheses (or square brackets, or curly braces) can now also be continued without using a backslash. This is particularly useful for calls to functions with many arguments, and for initializations of large tables.

For example:

        month_names = ['Januari', 'Februari', 'Maart', 
                       'April',   'Mei',      'Juni', 
                       'Juli',    'Augustus', 'September',
                       'Oktober', 'November', 'December']

and

        CopyInternalHyperLinks(self.context.hyperlinks,
                               copy.context.hyperlinks,
                               uidremap)



guido@cwi.nl