Help, replacing the actual value from a data strucutre in a iterator

Simon Burton simonb at webone.com.au
Sat Jan 4 07:40:18 EST 2003


On Sat, 04 Jan 2003 23:33:58 +1100, Simon Burton wrote:


> yes, good question. Let us know when you work it out; last time i tried this i
> used a tuple (1,10,20,40) to index the offending element, that was before
> iterators/generators. at first glance it seems a custom class supporting the
> iterator protocol is needed.
> 
>> 

whoops, i think it was lists, [1,10,20,40] etc.
These are called 'multi indexes'..? lot's of AI stuff is rife with them.

Simon Burton






More information about the Python-list mailing list