TIL that Python allows you to override subclass logic with __subclasshook__! This lets you define protocols, or cute things like isinstance(Noon(), PalindromicName).
Python goes all-in on metaobject protocols :)
https://www.hillelwayne.com/negatypes/
miniblog.
Related Posts
elif isinstance(obj, Sequence):
return [fmap(value, func) for value in obj] # breaks, because python has no char type :(
Fun #python fact of the day: isinstance(True, int) => True!