nonlocal fails ?

R.Wieser address at not.available
Fri Nov 15 07:34:53 EST 2019


Pieter,

> Do you mean, if Proc1() is called from Func1, it uses MyVar defined
>in Func1, and if it is called from Func2, it uses MyVar from Func2?

Yep.

> If that is what you mean, that would be dynamic scope.

Thanks for pointing that out (I've learned a new definition today! :-) ).

Regards,
Rudy Wieser




More information about the Python-list mailing list