Exceptions that Aren't Exceptions are Actually Regular Rules
This is the third subpage of our comprehensive guide on exceptions that aren't exceptions. If you're feeling lost, return to the main page and try again.
Today we're going to talk about Exceptions That Aren't Exceptions are Actually Regular Rules (ETAR), a phenomenon so rare it's almost never seen, but when it is, it's like a unicorn riding a unicorn over a rainbow.
ETARs are like the exception that proves the rule, but not really. In fact, they're more like the rule that's always right, except when they're not. It's all very confusing, we know.
Here's a simple example:
def etar(x):
if x == True:
print("This is an ETAR!")
else:
print("This is not an ETAR.")
As you can see, this function is always right, except when it's not. It's like the exception that proves the rule, but not really.