a = b = 1 just syntactic sugar?

Michele Simionato mis6 at pitt.edu
Sun Jun 8 14:21:41 CEST 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
(especially in closures). It is very unobstrusive, clear, and save me
effort of thinking if I should name the internal function wrap,
wrapper, wrapped, on any other similar verbose combination  ;)


More information about the Python-list mailing list