On 14 Nov 2019, at 15:15, R.Wieser wrote:

Too bad though, it means that procedures that want to share/use its callers variables using nonlocal can never be called from main. And that a caller of a procedure using nonlocal cannot have the variable declared as global
(just tested it).

So what you want to do is dynamic scope? https://www.geeksforgeeks.org/static-and-dynamic-scoping/

= jem
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to