[Python-ideas] [Wild Idea] Static Ducks

Dj Gilcrease digitalxero at gmail.com
Sun Sep 20 00:59:44 CEST 2009


On Sat, Sep 19, 2009 at 4:40 PM, Masklinn <masklinn at masklinn.net> wrote:
> parameterized types: a list of strings (List[String]), a tuple of (int,
> string) (Tuple[Int, String]), a dict of {Foo:Bar} (Dict[Foo, Bar]) etc…


$dict($type key[, $type value])
$tuple($type value) # lets you specify the type for the tuples values
$list($type value) # lets you specify the type for the lists values
$set($type value) # lets you specify the type for the sets values
$frozenset($type value) # lets you specify the type for the sets values
$sets($type value) # lets you specify the type for the sets values
$seq($type value) # lets you specify the type for the sequence values

These arent what you are looking for?



More information about the Python-ideas mailing list