Re: Why is return type in getfullspec().annotations named as "return"?

2011-04-02 Thread andrew cooke
Sorry, ignore that. I just realised that "return" will be a reserved word, so that can't happen. Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is return type in getfullspec().annotations named as "return"?

2011-04-02 Thread Steven D'Aprano
On Sat, 02 Apr 2011 17:15:52 -0700, andrew cooke wrote: > This conflicts with any parameter named "return". Wouldn't it have been > better to use "->" as the key? Is there any way this can be changed? Can you give an example of a function with a parameter named return? -- Steven -- http://m

Why is return type in getfullspec().annotations named as "return"?

2011-04-02 Thread andrew cooke
This conflicts with any parameter named "return". Wouldn't it have been better to use "->" as the key? Is there any way this can be changed? Andrew -- http://mail.python.org/mailman/listinfo/python-list