unexpected behavior: did i create a pointer?
Grant Edwards
grante at visi.com
Fri Sep 7 09:10:16 EDT 2007
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). ;)
> As long as you keep in mind that python doesn't have pointers
> to pointers, and no pointer arithmetic either...
--
Grant Edwards grante Yow! Hello... IRON
at CURTAIN? Send over a
visi.com SAUSAGE PIZZA! World War
III? No thanks!
More information about the Python-list
mailing list