Allowing comments after the line continuation backslash

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Nov 1 23:16:46 CET 2010


In message <4CCE6FF6.2050408 at v.loewis.de>, Martin v. Loewis wrote:

> (in fact, I can't think any situation where I would use the backslash).

    for \
        Description, Attr, ColorList \
    in \
        (
            ("normal", "image", MainWindow.ColorsNormalList),
            ("highlighted", "highlight", MainWindow.ColorsHighlightedList),
            ("selected", "select", MainWindow.ColorsSelectedList),
        ) \
    :
       ...
    #end for

<http://github.com/ldo/dvd_menu_animator>



More information about the Python-list mailing list