Forked from erlnby/gist:dfb8ee62b3e6634faddebffef8f35076
Created
February 8, 2020 19:16
-
-
Save GeorgiyDemo/96a9e89b1961a2e9401262b16424f7c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ValA: | |
def __init__(self, obj): | |
self.obj = obj | |
def get(self): | |
return self.obj | |
def set(self, obj): | |
self.obj = obj | |
class ValB: | |
def set(self, obj): | |
self.get = lambda: obj | |
__init__ = set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment