Draft Pep (was: Re: Let's Talk About Lambda Functions!)

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Tue Aug 6 17:11:38 CEST 2002


"Terry Reedy" <tjreedy at udel.edu> writes:
> def fname params: body
> 
> is syntactic sugar for
> 
> fname = _internal_defun('fname', 'params', 'body')
> 
> that avoids have to quote stuff and write fname twice.  Same true of
> class and import statement.

What the heck is _internal_defun?  Typing it gets NameError in Python 2.2.



More information about the Python-list mailing list