[Python-ideas] New __reference__ hook
Jasper St. Pierre
jstpierre at mecheye.net
Wed Dec 5 18:05:32 CET 2012
More information about the Python-ideas mailing list
Wed Dec 5 18:05:32 CET 2012
- Previous message: [Python-ideas] New __reference__ hook
- Next message: [Python-ideas] New __reference__ hook
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
And? What's wrong with an __iadd__ that's exactly the same as Mike's __add__? On Wed, Dec 5, 2012 at 11:06 AM, <random832 at fastmail.us> wrote: > 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. > _______________________________________________ > Python-ideas mailing list > Python-ideas at python.org > http://mail.python.org/mailman/listinfo/python-ideas > -- Jasper -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121205/4801aa85/attachment.html>
- Previous message: [Python-ideas] New __reference__ hook
- Next message: [Python-ideas] New __reference__ hook
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list