First script, please comment and advise

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Mar 9 15:42:41 EST 2006


> nested and hided inside a class.

Hidden, sorry :-)


>Can a "sub-function" be called directly from outside the defining function?

I don't think you can access a nested function in a clean&nice way (and
you can nest classes too, etc). With a little of Python magic maybe
there is a way to do it... But for such purposes probably a module (or
maybe a class with a static method) is better.

Bye,
bearophile




More information about the Python-list mailing list