We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from pubsub import pub
def localCall(func): def real_func(data): print("In real function : {}".format(data)) func(data) return real_func
def localUpdate(data): print("In local update")
pub.subscribe(localCall(localUpdate), "update") pub.sendMessage("update", data="updateUI")
In the example above, the function localUpdate can't be called. I have no idea why the closure function can't be called?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
from pubsub import pub
def localCall(func):
def real_func(data):
print("In real function : {}".format(data))
func(data)
return real_func
def localUpdate(data):
print("In local update")
pub.subscribe(localCall(localUpdate), "update")
pub.sendMessage("update", data="updateUI")
In the example above, the function localUpdate can't be called. I have no idea why the closure function can't be called?
The text was updated successfully, but these errors were encountered: