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

Terry Reedy tjreedy at udel.edu
Tue Aug 6 17:00:42 CEST 2002

> The `def' name is not intrinsic.  We all know it is a mere binding.

Wrong.  It is NOT mere binding and that is the source of confusion.
There are two types of names.  Like class and import statement names,
the def name is both.  Both intrinsic (and unchangable) and bound (and

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.

Terry J. Reedy

More information about the Python-list mailing list