On Wed, Dec 5, 2012, at 9:10, Mike Graham wrote: > I don't know what problem you had defining MyInteger. Here is a definition (albeit comprised of very, very sloppy code) that passes your test Most likely he thought he had to define __iadd__ for += to work.