Re: [Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread Kent Johnson
Kent Johnson wrote: > I think to write correct programs in any language, you must have a > correct mental model of what the program is doing, where by 'correct' I > mean a model that is consistent with the actual behaviour of the program. Here is a sketch of what the different parts of a model f

Re: [Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread Kent Johnson
jim stockford wrote: > > as I understand things... > > there's a writeup somewhere that uses the term "bind" instead > of "assign" for the operation > a = b Yes, that is how I prefer to talk about it - the effect of an assignment statement is to bind a name to a value. > > for example, in Pyth

Re: [Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread jim stockford
as I understand things... there's a writeup somewhere that uses the term "bind" instead of "assign" for the operation a = b for example, in Python a = 1 the value 1 now has a name of a associated with it. b = a the value 1 now has two names, a and b, associated with it the value 1 exists as an o

Re: [Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread Dick Moores
At 07:38 AM 7/17/2007, Kent Johnson wrote: >Dick Moores wrote: >>At 04:57 AM 7/17/2007, you wrote: >>>A recent comp.lang.python thread has a good explanation of Python's >>>assignment semantics: >>>http://groups.google.com/group/comp.lang.python/browse_thread/thread/56e7d62bf66a435c/ >>> >>> >> >>

Re: [Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread Kent Johnson
Dick Moores wrote: > At 04:57 AM 7/17/2007, you wrote: >> A recent comp.lang.python thread has a good explanation of Python's >> assignment semantics: >> http://groups.google.com/group/comp.lang.python/browse_thread/thread/56e7d62bf66a435c/ >> > > > Kent, > > Yes, interesting. But could you ex

Re: [Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread Dick Moores
At 04:57 AM 7/17/2007, you wrote: A recent comp.lang.python thread has a good explanation of Python's assignment semantics: http://groups.google.com/group/comp.lang.python/browse_thread/thread/56e7d62bf66a435c/ Kent, Yes, interesting. But could you explain what you mean by "assignment semantic

[Tutor] Good writeup on Python assignment semantics

2007-07-17 Thread Kent Johnson
A recent comp.lang.python thread has a good explanation of Python's assignment semantics: http://groups.google.com/group/comp.lang.python/browse_thread/thread/56e7d62bf66a435c/ Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/