Would Anonymous Functions Help in Learning Programming/Python?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Sep 24 12:05:50 CEST 2007


On Mon, 24 Sep 2007 11:43:59 +0200, Bruno Desthuilliers wrote:

> You already can create functions without using the def statement:
> 
> Help on class function in module __builtin__:
> 
> class function(object)
>   |  function(code, globals[, name[, argdefs[, closure]]])
>   |
>   |  Create a function object from a code object and a dictionary.
>   |  The optional name string overrides the name from the code object.
>   |  The optional argdefs tuple specifies the default argument values.
>   |  The optional closure tuple supplies the bindings for free variables.
>   |

Where the heck does *this* come from?  Neither Python 2.5.1 nor the
3.0alpha has this in `__builtin__`.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list