Writing func_closure?

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Jun 8 22:37:53 EDT 2005


Fernando Perez wrote:

> I can reuse the closure from a different
> function, but the docs don't say how to make a valid closure tuple.  This is
> the typical problem of the stdlib docs, which under-specify what is supposed to
> go into a call and don't give at least a specific example.

As far as I know, there is currently no supported way
of directly creating or modifying cell objects from Python;
it can only be done by some obscure trickery. So the docs
are telling the truth here, in a way. :-)

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list