On 31 August 2016 at 07:11, Chris Angelico <ros...@gmail.com> wrote:
> Didn't all this kind of thing come up when function annotations were
> discussed? Insane schemes like dictionaries with UUID keys and so on.
> The decision then was YAGNI. The decision now, IMO, should be the
> same. Keep things simple.

Different use case - for annotations, the *reader* of the code is one
of the intended audiences, so as the author of the code, you decide
what you want to tell them, and that then constrains the tools you can
use (or vice-versa - you pick the kinds of tools you want to use, and
that constrains what you can tell your readers).

This case is different - there are no human readers involved, only
automated tools, so adding a mandatory redirection through a sequence
is just a small performance hit rather than a readability problem.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to