How to reassign the value of the variable on runtime?

Chris Angelico rosuav at
Sat Aug 29 18:20:07 CEST 2015

On Sun, Aug 30, 2015 at 2:18 AM, Ivan Evstegneev
<webmailgroups at> wrote:
> As for the globals?  Each function that need to modify the globals should
> contain a "global bar" inside its body?

Only if it's going to _reassign_ that global. If it's going to mutate
it in other ways, it doesn't need to.


More information about the Python-list mailing list