PEP 3107 Function Annotations for review and comment

Tony Lownds tony at PageDNA.com
Sun Dec 31 10:41:32 EST 2006


On Dec 31, 2006, at 4:26 AM, Kay Schluehr wrote:

> I have two questions:
>
> 1) I don't understand the clause ('*' [tname] (',' tname ['=' test])*
> in the grammar rule of typedargslist. Does it stem from another PEP?
>

Yes, PEP 3102 Keyword-only Arguments.

> 2) Is the func_annotation information for def foo(*c: list)
> stored as {"*c": list} preserving optional argument information or
> {"c":list} ?
>

{"c": list}

-Tony







More information about the Python-list mailing list