optimization

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Tue Dec 2 01:43:18 CET 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