Michael Langford wrote:

> When you call [] on an object, it calls __getitem__The definition for 
> getitem is __getitem__(self,key), where key can be an integer or a slice 
> object. 

Or a tuple of integers/slices.

> You may want to try to write a PEP for python 3000. So much is being 
> changed with that, you may get it in.

The deadline for PEPs for Python 3 has long passed - it was in April IIRC.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to