Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NoExplicit:
- def __init__(self):
- self.selfless = lambda: print("I'm just a function.")
- def method(self):
- print("I'm a method!")
- a = NoExplicit()
- a.selfless()
- a.method()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement