Skip to content

Instantly share code, notes, and snippets.

@wo0dyn
Created June 4, 2022 10:05
Embed
What would you like to do?
class Bee:
def __str__(self):
return "🐝"
class Dog:
def stepped_on(self, something):
...
if isinstance(something, Bee):
raise SystemExit("😱🥴")
def __str__(self):
return "🐶"
my_dog = Dog()
a_bee = Bee()
my_dog.stepped_on(a_bee)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment