pythong referencing/aliasing

Joshua Marshall joshway_w/o_spam at
Fri Apr 25 20:47:26 CEST 2003

Gerhard H?ring <gh at> wrote:
> Joshua Marshall wrote:
>> You're basically asking two questions, and both answers are "no".
>> There is no way to associate two variables the same address, and there
>> is no REF/address-of operator in Python.

> Such an operator isn't necessary because creation of references is the 
> default behaviour in Python.


Oh I agree it's not necessary; it's not even necessary in C.  You can
always leave your data on the heap--malloc a chunk of memory and pass
that address around instead of taking the address of a variable.

More information about the Python-list mailing list