Newbie question abt __getitem__ and __iter__

karthik Guru karthikg at aztec.soft.net
Mon Nov 19 08:11:04 EST 2001


hi all,

what other languages support treating a class as a collection of objects and
allowing indexed access to it's constituents?

I also liked the iter() concept and the way it works.
I saw C# adopting both these things.

But which language supported it first?

thanks,
karthik.





More information about the Python-list mailing list