[Python-3000] signature annotation in the function signature or a separate line

Samuele Pedroni pedronis at strakt.com
Sat Aug 19 19:59:23 CEST 2006


Nick Coghlan wrote:
> 
> What would a separate sig expression buy you over defining "->expr" as a 
> special form of keyword argument that binds to the keyword name "return" 
> in the dictionary for storing extra keyword arguments?

seems to me a quirky addition of sugar, also could not be limited; I 
prefer going the full length and supporting argument name introduction 
with : etc. as shown in the example.

But it seems we agree that interspensing the annotation in the main
head of the function is not such a great idea after all.


More information about the Python-3000 mailing list