types.FunctionType vs types.LambdaType

Warren Postma embed at geocities.com
Fri Feb 9 09:17:51 EST 2001


"Xavier Defrang" deftly observed:
> I was exploring the wonderful world of the Python
> documentation when I saw that the standard library
> types module had two distinct function types :
> FunctionType and LambdaType.  Both of these are
> references to the type 'function' (see code snippet).


Maybe it's historical baggage. It's been the same actual object, with two
'name bindings' in the 'types' module at least since 1.5.2.

Warren





More information about the Python-list mailing list