Talin wrote:
> Ideally, if we get the signature API that's been discussed, then lists
> and tuples and such would have a constraint on their __getitem__ method:
>
> def __getitem__( self, index:int ):
> ...
Don't forget those little beasties known as slices :)
Cheers,
Nick.
--
Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com