Addressing the last element of a list

pinkfloydhomer at gmail.com pinkfloydhomer at gmail.com
Tue Nov 8 04:38:04 EST 2005


I just want an alias. Ideally, I don't want to deal with pointers or
special reference "types" etc. After all, this is not C++ :)

I just want to be able to make a reference to any old thing in Python.
A list, an integer variable, a function etc. so that I, in complicated
cases, can make a shorthand. If "myRef" could somehow "point at"
something long an complicated like a[42]["pos"][-4], that might be
useful.

/David




More information about the Python-list mailing list