[Python-3000] Type annotations: annotating generators

Collin Winter collinw at gmail.com
Fri May 19 23:14:29 CEST 2006


On 5/19/06, Guido van Rossum <guido at python.org> wrote:
> I'm unconvinced. Can you provide an example of where this would be
> useful? I'm not looking for an example showing how it works; I want to
> see an example showing why we need this functionality.

Honestly, I don't have one.

Let's go back to Function(<type>, <type>, ..., returns=<type>) for
now. I'll change my own implementation of Function() to match this,
and if people start hollering at me after the next release of
typecheck, wanting vargs, kwargs and/or keyword argument support, then
we can reconsider it for Python's own version.

Collin Winter


More information about the Python-3000 mailing list