[Python-3000] my take on "typeclasses"

Nick Coghlan ncoghlan at gmail.com
Fri May 12 10:02:35 CEST 2006


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   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list