Message281954
I personally prefer the first patch, which iterates over a copy of __dict__. Making a copy of a dict is actually a pretty fast operation, I would even expect that it is faster than the proposed alternative, creating tuples.
Even if the second approach should be faster, the added code complexity is not worth the effort, as this is a code path where speed shouldn't matter much. |
|
Date |
User |
Action |
Args |
2016-11-29 07:30:25 | Martin.Teichmann | set | recipients:
+ Martin.Teichmann, rhettinger, ncoghlan, ned.deily, serhiy.storchaka, abarry, Wombatz |
2016-11-29 07:30:25 | Martin.Teichmann | set | messageid: <1480404625.19.0.194382434381.issue28797@psf.upfronthosting.co.za> |
2016-11-29 07:30:25 | Martin.Teichmann | link | issue28797 messages |
2016-11-29 07:30:24 | Martin.Teichmann | create | |
|