I am looking to pass a function to another function, as well as a named parameter. This is similar to the question asked here, except that it doesn't address named parameters. A question was asked about it in the comments but no reply.
Example:
def printPath(path, displayNumber = False):
pass
def explore(path, function, *args):
contents = function(*args)
print explore(path, printPath, path, displayNumber = False)
This gives the error:
TypeError: explore() got an unexpected keyword argument 'displayNumber'