Re: PEP 3107 Function Annotations for review and comment



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?

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

Regards,
Kay

.



Relevant Pages

  • Re: ten small Python programs
    ... Though the code should probably follow PEP 8 guidelines, ... lower case (either with underscores or mixed case) ... def buy: self.items.append ...
    (comp.lang.python)
  • Re: unittest.TestCase, lambda and __getitem__
    ... > to use a single line such as def name: ... Yeah, I noticed the if thing wasn't in the PEP, but it is in the Wiki at ... self.assertRaises(IndexError, getitem, myobj, -10) ... STeve ...
    (comp.lang.python)
  • Re: pre-PEP: Suite-Based Keywords
    ... Nicolas Fleury wrote: ... > Shane Hathaway wrote: ... >> I like this PEP a lot, ... >> def fset: ...
    (comp.lang.python)
  • PEP 343, second look
    ... After taking a break from following PEP 343 and it's associated PEPs, I wanted to look at it again because it still seemed a bit hard to get my mind around. ... def __enter__: pass def __exit__: pass ...
    (comp.lang.python)
  • PEP 288 ponderings
    ... also seemed to me like generator attributes don't really solve the ... Another example from the PEP: ... where the nextargs function retrieves the arguments of the most recent ... def __init__: ...
    (comp.lang.python)