object's list index

Steven D'Aprano steve at REMOVETHIScyber.com.au
Fri Mar 3 20:50:22 EST 2006


On Fri, 03 Mar 2006 04:48:20 -0800, Iain King wrote:

> I think python only stores lists one way - i.e. each index maps to it's
> value, but no backwards trace is kept from value to index.

Python lists are arrays of pointers to objects. The objects themselves
have no clue what lists they belong to, or what position they are in.


-- 
Steven.




More information about the Python-list mailing list