optimization

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Dec 1 19:43:18 EST 2008


Robert Kern:
>I only expect functions to be defined inside of functions if they are going to use lexical scoping for some reason.<

There are other reasons to nest functions. One of them is to represent
logical nesting of some functionality.
So you will find some exceptions to your self-created rule :-)

Bye,
bearophile



More information about the Python-list mailing list