a = b = 1 just syntactic sugar?

Michele Simionato mis6 at pitt.edu
Sun Jun 8 08:21:41 EDT 2003


Ed Avis <ed at membled.com> wrote in message news:<l1znkthb3f.fsf at budvar.future-i.net>...
> Of course it seems a little clunky to define these
> functions with a name that is then never used except to return them
> anonymously

I have recently come to the habit of calling "_" my anonymous
functions
(especially in closures). It is very unobstrusive, clear, and save me
the
effort of thinking if I should name the internal function wrap,
wrapper, wrapped, on any other similar verbose combination  ;)


                                                  Michele




More information about the Python-list mailing list