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. Advertisements

  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. Advertisements

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. heyo
    Replies:
    3
    Views:
    1,422
    Dan Pop
    Apr 1, 2004
  2. pete
    Replies:
    4
    Views:
    1,043
    Dan Pop
    Apr 2, 2004
  3. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,384
    Mark Rae
    Dec 21, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,853
    Smokey Grindel
    Dec 2, 2006
  5. Yevgen Muntyan

    #define ALLOCIT(Type) ((Type*) malloc (sizeof (Type)))

    Yevgen Muntyan, Feb 9, 2007, in forum: C Programming
    Replies:
    10
    Views:
    1,224
    Yevgen Muntyan
    Feb 13, 2007
  6. Replies:
    1
    Views:
    610
    Joshua Cranmer
    Aug 10, 2007
  7. kj
    Replies:
    5
    Views:
    632
  8. Alex J
    Replies:
    7
    Views:
    964
    Alex J
    Sep 12, 2011
Loading...