Message189648
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. |
|
Date |
User |
Action |
Args |
2013-05-20 10:41:01 | ronaldoussoren | set | recipients:
+ ronaldoussoren, mark.dickinson, r.david.murray, flox, andy.chugunov |
2013-05-20 10:41:01 | ronaldoussoren | set | messageid: <1369046461.59.0.775749650549.issue17973@psf.upfronthosting.co.za> |
2013-05-20 10:41:01 | ronaldoussoren | link | issue17973 messages |
2013-05-20 10:41:01 | ronaldoussoren | create | |
|