What is the purpose of subclassing the class “object” in Python?

In short, it sets free magical ponies. In long, Python 2.2 and earlier used “old style classes”. They were a particular implementation of classes, and they had a few limitations (for example, you couldn’t subclass builtin types). The fix for this was to create a new style of class. But, doing this would involve some … Read more