[Python-3000] optional argument annotations

Collin Winter collinw at gmail.com
Sat Nov 25 04:12:35 CET 2006


On 11/24/06, Tony Lownds <tony at pagedna.com> wrote:
> On Nov 24, 2006, at 8:30 AM, Guido van Rossum wrote:
> > (It does imply that we can't use "-> None" to indicate "returns no
> > value". We'd have to spell that as "-> type(None)" or find some other
> > way. I think I don't care. Do others? Collin?)
>
> That's fine with me, but just to toss out another idea: we could put the
> return annotation in func_annotations['return'].

This is the solution I had initially envisioned, for exactly the
reason Guido outlines.

Collin Winter


More information about the Python-3000 mailing list