Nick Coghlan <[EMAIL PROTECTED]> 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
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to