[Python-ideas] New __reference__ hook

random832 at fastmail.us random832 at fastmail.us
Wed Dec 5 17:06:28 CET 2012


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.



More information about the Python-ideas mailing list