Reduce need of backslash

Nicolas Fleury nid_oizo at yahoo.com_remove_the_
Fri Sep 26 15:48:11 EDT 2003


John Roth wrote:
> How about:
> 
>     parser.StartElementHandler = (lambda name, attrs:
>         GenericParser.handleElementStart(self, name, attrs))
> 

That's perfect.  All my incomprehension was because I didn't know a 
one-element tuple is written (x,) and not (x).  Thx

Nicolas





More information about the Python-list mailing list