Tag Archive: wrapper

My class is bigger than your class

Python classes are great. But they can be better. Take a look at this class, let's call it Foo: Yes, try as it might, this puny class doesn't even know if it's bigger than 0 or not! It would not help to define a __gt__... View Article