Incorrectly assume God's gender
This commit is contained in:
parent
4da77c2757
commit
33e8a68162
1 changed files with 14 additions and 3 deletions
17
heaven.py
17
heaven.py
|
|
@ -1,7 +1,18 @@
|
||||||
|
from contextlib import suppress
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
|
|
||||||
class a_place_on_earth(list): ...
|
class a_place_on_earth(list):
|
||||||
|
def __del__(self):
|
||||||
|
global heaven
|
||||||
|
heaven = self
|
||||||
|
|
||||||
|
def __bool__(self):
|
||||||
|
return self == []
|
||||||
|
|
||||||
|
|
||||||
|
def god_is_a_girl():
|
||||||
|
raise GenderException("No zhe isn't")
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
@ -12,8 +23,8 @@ class Dog:
|
||||||
global heaven
|
global heaven
|
||||||
heaven.append(self)
|
heaven.append(self)
|
||||||
|
|
||||||
|
with suppress(NameError):
|
||||||
heaven = a_place_on_earth()
|
heaven = a_place_on_earth() and god_is_a_girl()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
Dog("Fido")
|
Dog("Fido")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue