unexpected behavior: did i create a pointer?

Peter Otten __peter__ at web.de
Sat Sep 8 04:07:14 EDT 2007


Am Fri, 07 Sep 2007 13:10:16 +0000 schrieb Grant Edwards:

> On 2007-09-07, Peter Otten <__peter__ at web.de> wrote:
>> Am Fri, 07 Sep 2007 10:40:47 +0000 schrieb Steven D'Aprano:
>>
>>> Python doesn't have any pointers.
>>
>> Thinking of python variables or "names" as pointers should
>> get you a long way when trying to understand python's behaviour.
> 
> But thinking of them as names bound to objects will get you
> further (and get you there faster). ;)

Understanding a new system in terms of one I already know works for me.
When terminology and the system it describes make a perfect fit that is a
strong indication that you have reached a dead end.

Peter



More information about the Python-list mailing list