Skip to content

Instantly share code, notes, and snippets.

@martyni
Last active May 17, 2019 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martyni/cb4a30afd865fd815e82cd86ee658d61 to your computer and use it in GitHub Desktop.
Save martyni/cb4a30afd865fd815e82cd86ee658d61 to your computer and use it in GitHub Desktop.
Pointlessly complicated python class
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