A question about reference in Python.
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Mon Dec 8 21:43:06 EST 2008
On Mon, 08 Dec 2008 08:18:27 -0700, Joe Strout wrote:
> On Dec 7, 2008, at 10:26 PM, Group wrote:
>
>> Now, I want to write a Red-Black Tree, and a List structure. In C/C+ +,
>> I can
>> use pointers to refer to children notes (or next notes). But, in
>> Python, how
>> can I do it? Except the sequence, I know not any way.
>
> Any variable in Python is a reference
Except that they don't behave like references in languages that have
explicit reference parameters.
Joe, please stop muddying the water. We've been over this to death. Did
you not see the thread asking how to create reference parameters in
Python? Subject "var or inout parm?". I noticed you were conspicuous by
your absence in that little discussion.
--
Steven
More information about the Python-list
mailing list