[Python-3000] Type parameterization (was: Re: Type annotations: annotating generators)

Guido van Rossum guido at python.org
Sat May 20 21:53:08 CEST 2006


On 5/20/06, Tony Lownds <tony at printra.net> wrote:
> How about just dict[str:int]?

A bit too clever, although it happens to work syntactically -- it
calls dict.__getitem__(slice(str, int)).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list