Created
December 13, 2021 19:54
-
-
Save vcokltfre/85e2a90ade2ac95dfe0cacd085d3e2e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 DumbFuckingWrapper: | |
def __init__(self, func, *args, **kwargs): | |
self.func = func | |
self.args = args | |
self.kwargs = kwargs | |
def __call__(self, a): | |
self.func(*self.args, **self.kwargs) | |
return a | |
class Thing: | |
def __init__(self, func, *args, **kwargs): | |
self.callable = DumbFuckingWrapper(func, *args, **kwargs) | |
def __call__(self, h: bool = False): | |
if h: | |
return self.callable(self) | |
else: | |
return self | |
thing = Thing(print, "Hello, world!") | |
thing()()()()()()(True)()()()()()()(True)()()()()()()()()()()()(True)()()()()()()( | |
True | |
)()()()()()()(True)()()()()()()()()()()()(True)()()()()()()(True)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()()()()()()()( | |
True | |
)()()()()()()( | |
True | |
)()()()()()() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment