nested functions

Gregory Petrosyan gregory.petrosyan at gmail.com
Wed Jun 14 17:07:59 EDT 2006


I often make helper functions nested, like this:

def f():
    def helper():
        ...
    ...

is it a good practice or not? What about performance of such
constructs?

--
Regards, Gregory.




More information about the Python-list mailing list