a = b = 1 just syntactic sugar?

Erik Max Francis max at alcyone.com
Sun Jun 8 16:27:52 EDT 2003


Michele Simionato wrote:

> 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  ;)

That's a tempting "dummy" name for its brevity and uniqueness, but
unfortunately a number of internationalization systems, like gettext,
use the _ to wrap around string literals which need to be localized.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ Youth is a period of missed opportunities.
\__/  Cyril Connolly




More information about the Python-list mailing list