[Tutor] nested functions
Sean 'Shaleh' Perry
shalehperry@attbi.com
Tue, 09 Apr 2002 14:24:52 -0800 (PDT)
On 09-Apr-2002 Cameron Stoner wrote:
> Hi all,
>
> Is it a good or bad idea to call functions with in functions? What could you
> do to not have functions calling functions? I have given an example of this
> bellow.
>
functions are an important building block, nothing wrong with functions calling
functions calling more functions.
now DEFINING nested functions can be messy:
def foo(item):
def bar(that):
print that
bar(item)