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

Discussion in 'Python' started by andrew cooke, Apr 3, 2011.

  1. andrew cooke

    andrew cooke Guest

    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
     
    andrew cooke, Apr 3, 2011
    #1
    1. Advertising

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

    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
     
    Steven D'Aprano, Apr 3, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Efy.
    Replies:
    1
    Views:
    541
    Nicole Calinoiu
    Sep 22, 2003
  2. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    909
    Mark Rae
    Dec 21, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,998
    Smokey Grindel
    Dec 2, 2006
  4. Replies:
    1
    Views:
    490
    Joshua Cranmer
    Aug 10, 2007
  5. Alex J
    Replies:
    7
    Views:
    811
    Alex J
    Sep 12, 2011
Loading...

Share This Page