Reduce need of backslash

Mel Wilson mwilson at the-wire.com
Fri Sep 26 16:15:43 EDT 2003


In article <MI_cb.75294$PD3.4794043 at nnrp1.uunet.ca>,
Nicolas Fleury <nid_oizo at yahoo.com_remove_the_> wrote:
>  [ ... ]                                              I wonder how to
>remove the need for \ in that example:
>
>     parser.StartElementHandler = \
>         lambda name, attrs: \
>             GenericParser.handleElementStart(self, name, attrs)


You're gonna hate this :) ...

     parser.StartElementHandler = (
         lambda name, attrs:
             GenericParser.handleElementStart(self, name, attrs)  )


        Regards.        Mel.




More information about the Python-list mailing list