1

I have this functions:

def crypting(self, client, access_token, client_id, client_secret, oauth_scope, redirect_uri):

The error in title is in this function:

FCU.crypting(client = None, access_token = None, client_id, client_secret, oauth_scope, redirect_uri)

Why? Thanks for the solution.

0

3 Answers 3

7

It's just what it says. You can't pass non-keyword arguments after keyword arguments. If you have something like client=None, that's a keyword argument, and all of those have to come at the end of the argument list.

Sign up to request clarification or add additional context in comments.

Comments

1

Problem solved with other method:

variable1 = None
variable2 = None

class.function(variable1, variable2, client_id, client_secret)

Comments

0

Check out section 4.7.2 here:

http://docs.python.org/2/tutorial/controlflow.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.