For the record, the worst Python atrocity I've seen looks something like this:
class Cat: def speak(self): print "meow!" class Dog: def speak(self): print "woof!" def transmogrify(self): self.__class__ = Cat
>>> d = Dog() >>> d.speak() woof! >>> d.transmogrify() >>> d.speak() meow!
For the record, the worst Python atrocity I've seen looks something like this:
And, as I'm sure you can imagine, it works like this: