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

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Apr 2 21:02:35 EDT 2011


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



More information about the Python-list mailing list