osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variable scope in nested functions


def a() :
    Print (value)
    def b() :
         Value = 100
    Return b

Its a nested function.  How can I use variable value just one function
above the parent function.
This is possible in tcl.. Is it possible in Python too?