Author Martin.Teichmann
Recipients Martin.Teichmann, Wombatz, abarry, ncoghlan, ned.deily, rhettinger, serhiy.storchaka
Date 2016-11-29.07:30:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480404625.19.0.194382434381.issue28797@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-11-29 07:30:25Martin.Teichmannsetrecipients: + Martin.Teichmann, rhettinger, ncoghlan, ned.deily, serhiy.storchaka, abarry, Wombatz
2016-11-29 07:30:25Martin.Teichmannsetmessageid: <1480404625.19.0.194382434381.issue28797@psf.upfronthosting.co.za>
2016-11-29 07:30:25Martin.Teichmannlinkissue28797 messages
2016-11-29 07:30:24Martin.Teichmanncreate