Assignment not the same as defining?

John J. Lee jjl at pobox.com
Wed Oct 3 16:24:35 CEST 2001


On Wed, 3 Oct 2001, Oleg Broytmann wrote:

> On Wed, Oct 03, 2001 at 12:35:58PM +0100, Dale Strickland-Clark wrote:
[...]
>    Python does not have assingment at all.
> a = b
>    is not assignment in Python - it is binding and rebinding. Reference to
> b copied into a. Only reference, not an object.
[...]

true, but that's not the answer to the problem -- it's the caching that
stops this from working, as somebody else has pointed out.


John




More information about the Python-list mailing list