Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95756 > unrolled thread

Re: How to reassign the value of the variable on runtime?

Started byChris Angelico <rosuav@gmail.com>
First post2015-08-30 02:20 +1000
Last post2015-08-30 02:20 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to reassign the value of the variable on runtime? Chris Angelico <rosuav@gmail.com> - 2015-08-30 02:20 +1000

#95756 — Re: How to reassign the value of the variable on runtime?

FromChris Angelico <rosuav@gmail.com>
Date2015-08-30 02:20 +1000
SubjectRe: How to reassign the value of the variable on runtime?
Message-ID<mailman.126.1440865211.11709.python-list@python.org>
On Sun, Aug 30, 2015 at 2:18 AM, Ivan Evstegneev
<webmailgroups@gmail.com> 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.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web