This file contains 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 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