> >>> i.__add__ = __add__ > >>> i+1 > 6 > >>> > > Was this in reference to a specific python version?
This doesn't work with new style classes and thus not in Python 3.x. Subclass from object and you'll see the difference. Christian -- http://mail.python.org/mailman/listinfo/python-list