nonlocal fails ?

R.Wieser address at not.available
Thu Nov 14 12:46:29 EST 2019


Jan,

> So what you want to do is dynamic scope?

No, not really.    I was looking for method to let one procedure share a 
variable with its caller - or callers, selectable by me.   And as a "by 
reference" argument does not seem to exist in Python ...

And yes, I am a ware that procedures can return multiple results.  I just 
didn'want to go that way (using the same variable twice in a single 
calling).

Regards,
Rudy Wieser




More information about the Python-list mailing list