passing arguments to a code object?
Michael Hudson
mwh21 at cam.ac.uk
Mon Nov 13 18:06:50 EST 2000
Gregory Trubetskoy <grisha at ispol.com> writes:
> [I know this is a really archane question]
>
> If all I have is a code object that represents a function, is there a way
> to call it and pass it arguments?
Have you checked out new.function?
http://www.python.org/doc/current/lib/module-new.html#l2h-524
I think that should do what you want.
Cheers,
M.
--
Sufficiently advanced political correctness is indistinguishable
from irony. -- Erik Naggum
More information about the Python-list
mailing list