-
-
Save zoriankazinski/866286140447b06e54c115f4571477b2 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