C
Carsten Haese
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__`.
It comes from the 'new' module:
Help on class function in module __builtin__:
....
Oddly enough, the help misrepresents which module the function is coming
from.