Variable Scope 2 -- Thanks for 1.
JCM
joshway_without_spam at myway.com
Fri Jan 9 16:32:12 EST 2004
Irmen de Jong <irmen at -nospam-removethis-xs4all.nl> wrote:
...
> A very important concept with Python is that you don't have variable
> assignment, but name binding. An "assignment statement" binds a name on an
> object, and the object can be of any type. A statement like this:
> age = 29
> doesn't assign the value 29 to the variable age. Rather, it labels the integer
> object 29 with the name age.
I think this statement is misleading--it seems to imply the integer
object is altered somehow. Personally I see no problem with saying
the value 29 is assigned to the variable age, so long as you
understand the semantics.
More information about the Python-list
mailing list