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
>>> class A: ... pass ... >>> a = A() >>> A.f = print >>> a.f() >>> A.f = lambda x: print(x) >>> a.f() <__main__.A object at 0x1023739b0>
The text was updated successfully, but these errors were encountered:
Oh yes?
Try A.f() instead of a.f() - I don't think it's really a WAT.
A.f()
a.f()
And when writing A.f = print differently, you should write A.f = lambda *args, **kwargs: print(*args, **kwargs) anyway.
A.f = print
A.f = lambda *args, **kwargs: print(*args, **kwargs)
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: