How many times inner functions are compiled ?
Jerome Quelin
jerome.quelin at insalien.org
Tue Jun 13 08:01:20 EDT 2000
Hi all,
def outer():
def inner():
print "spam"
inner()
outer()
outer()
In the snippet code above, I call outer() two times. I would like to
know how many times python will compile the inner function ? One time
when compiling the script/module, or two times, ie at every invocation of the
outer function ?
Thanks,
Jerome
--
jerome.quelin at insalien.org
More information about the Python-list
mailing list