-
-
Save iddoeldor/1a18af55d0c4ac9a0627bb90ab10d551 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
def _masquerade(self,origin): | |
self.__class__ = type(origin.__class__.__name__,(self.__class__,origin.__class__),{}) | |
self.__dict__ = origin.__dict__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment