Python Sanity Proposal: Type Hinting Solution

Mario Figueiredo marfig at gmail.com
Fri Jan 23 17:45:47 EST 2015


In article <MPG.2f2cecb4624e49c498968c at nntp.aioe.org>, marfig at gmail.com 
says...
> 
> 
> So I'd rather see:
> 
>      def myfunction(arg1, arg2):
>      """
>      Normal docstring.
>      """ 
>      "@typehint: (str, int) -> bool"
>          return True 
> 

Actually that is idiotic. Much better is:

      def myfunction(arg1, arg2):
      """
      Normal docstring...
      @typehint: (str, int) -> bool
      """ 
          return True 

Why would I need to insert an extra docstring, if I'm already defining a 
parameter?



More information about the Python-list mailing list