Martin Teichmann added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28797> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com