Mark Summerfield wrote:
> Hmmm, managed to confuse myself with 'b' and 'd'!
> 
> d = sorteddict({1:"one", 3:"three", 5:"five", 99:"ninetynine"})
> 
> d.items()
> 
> [(1, 'one'), (3, 'three'), (5, 'five'), (99, 'ninetynine')]
> 
> d[3], d.value(3)
> 
> ('three', 'ninetynine')
> 
> So using [] returns the value for the given key and using value()
> returns the value for the given index position.
> 

I didn't read enough messages. My last post is redundant.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to