How to call this method from main method

Peter Pearson pkpearson at nowhere.invalid
Wed Sep 28 12:48:27 EDT 2016


On Tue, 27 Sep 2016 23:44:11 -0700 (PDT), prasanthktgr at gmail.com wrote:
[snip]
>
> if __name__ == '__main__':
>       GenAccessToken("This_is_a_Test_QED_MAC_Key_Which_Needs_to_be_at_Least_32_Bytes_Long", "default", "default", 60000,
>            "g,m,a,s,c,p,d")
>
> When i am calling the above method from main method it is not
> returning the value but when i use print it is showing the value. Is
> there any wrong in returning the value from a method.

How do you know it's not returning a value?  You don't save the return
value anywhere.

-- 
To email me, substitute nowhere->runbox, invalid->com.



More information about the Python-list mailing list