syntax error in python function definitions -


sorry if sound complete idiot when asking this, i'm new python. when create function :

def load_content(name, colorkey=none, datatype): 

it tells me there syntax error. can tell, right way write function. said, i'm new. know what's wrong here?

you can't have default arguments between non-default arguments

def load_content(name, colorkey=none, datatype=none): 

or

def load_content(name, datatype, colorkey=none): 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -