[Python-3000] signature annotation in the function signature or a separate line (original) (raw)
Samuele Pedroni pedronis at strakt.com
Sat Aug 19 19:59:23 CEST 2006
- Previous message: [Python-3000] signature annotation in the function signature or a separate line
- Next message: [Python-3000] signature annotation in the function signature or a separate line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-3000] signature annotation in the function signature or a separate line
- Next message: [Python-3000] signature annotation in the function signature or a separate line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]