Last active
May 17, 2019 10:44
-
-
Save martyni/cb4a30afd865fd815e82cd86ee658d61 to your computer and use it in GitHub Desktop.
Pointlessly complicated python class
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 Pointless_Class(): | |
def __init__(self, this=None, that=None, the_other=None): | |
self.this = this or not this | |
self.that = that or not this if this is False else the_other | |
self.the_other = the_other if self.this is self.that else 'Screw this...!' | |
if __name__ == "__main__": | |
my_pointless_class = Pointless_Class() | |
print("this is {}".format( my_pointless_class.this )) | |
print("that is {}".format( my_pointless_class.that )) | |
print("the other is {}".format(my_pointless_class.the_other)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment