From 33e8a6816294e70f297129c8b28c58d71cc02807 Mon Sep 17 00:00:00 2001 From: Nettika Date: Tue, 22 Apr 2025 22:21:54 -0700 Subject: [PATCH] Incorrectly assume God's gender --- heaven.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/heaven.py b/heaven.py index 687b67e..7ca2e68 100644 --- a/heaven.py +++ b/heaven.py @@ -1,7 +1,18 @@ +from contextlib import suppress 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 @@ -12,8 +23,8 @@ class Dog: global heaven heaven.append(self) - -heaven = a_place_on_earth() +with suppress(NameError): + heaven = a_place_on_earth() and god_is_a_girl() if __name__ == "__main__": Dog("Fido")