This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients andy.chugunov, flox, mark.dickinson, r.david.murray, ronaldoussoren
Date 2013-05-20.10:41:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369046461.59.0.775749650549.issue17973@psf.upfronthosting.co.za>
In-reply-to
Content
David: your update to the FAQ looks ok to me.


I don't like updating the __setitem__ of tuple to allow setting an identical value (that is 'a[0] = a[0]'), it is a bit too magic to my taste and hides the real problem.

I'd slightly prefer my idea: update the code generated for += to try performing the assignment before calling __iadd__.  I hadn't looked at the AST compiler before, but at first glance implementing my idea seems easier than I had expected and I'm working on an experimental patch.
History
Date User Action Args
2013-05-20 10:41:01ronaldoussorensetrecipients: + ronaldoussoren, mark.dickinson, r.david.murray, flox, andy.chugunov
2013-05-20 10:41:01ronaldoussorensetmessageid: <1369046461.59.0.775749650549.issue17973@psf.upfronthosting.co.za>
2013-05-20 10:41:01ronaldoussorenlinkissue17973 messages
2013-05-20 10:41:01ronaldoussorencreate