[Python-3000] my take on "typeclasses"
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Fri May 12 12:48:17 CEST 2006
Nick Coghlan <ncoghlan at gmail.com> writes:
> 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 :)
And that a Patricia tree is a mapping, not a sequence, even though its
indices are integers.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Python-3000
mailing list