How to call this method from main method
Ben Finney
ben+python at benfinney.id.au
Wed Sep 28 03:19:38 EDT 2016
prasanthktgr at gmail.com writes:
> When i am calling the above method from main method
You don't have a main method, and you don't specify what “the above
method” is.
I assume you mean “… calling the ‘GenAccessToken’ function” (which is
not a method of anything, in the code you showed). But maybe you mean
something different?
> it is not returning the value but when i use print it is showing the
> value.
Can you show an example Python interactive session which:
* Imports your module.
* Calls the function.
* Demonstrates the behaviour that is confusing you.
> Please help me ASAP
You may not realise (I assume you are not a native English speaker),
that is *very* demanding and rude. We are a community of volunteers
here, asking for a response “ASAP” is making demands you are not in a
position to make.
--
\ “Don't fight forces, use them.” —Richard Buckminster Fuller, |
`\ _Shelter_, 1932 |
_o__) |
Ben Finney
More information about the Python-list
mailing list