pythong referencing/aliasing
Joshua Marshall
joshway_w/o_spam at myway.com
Fri Apr 25 14:47:26 EDT 2003
Gerhard H?ring <gh at ghaering.de> 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.
<snip>
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