Accessing nested functions for testing
monsterkodi
monsterkodi at gmx.net
Tue May 20 05:47:47 EDT 2003
Hi Chad,
nice question :-)
It is at least possible to access the name of the nested function.
It's contained in the foo's code object members 'co_names' and
'co_varnames':
>>> print foo.func_code.co_names
('bar',)
>>> print foo.func_code.co_varnames
('bar',)
I would guess that it's somehow possible to call it, but i don't have
an idea how to do it :-(
yours kodi
More information about the Python-list
mailing list