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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka, xiang.zhang
Date 2017-04-14.07:36:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492155389.97.0.996505245009.issue30061@psf.upfronthosting.co.za>
In-reply-to
Content
Raymond, could you please look at the change in Objects/setobject.c? It makes the code slightly faster (by avoiding few function calls: PyObject_Size(), PySequence_Size()/PyMapping_Size() and sq_length/mp_length), but the main purpose is making clear that no error check is needed after calling PyObject_Size(). I'm not going to include this change in backports.

Xiang suggests larger change that allows to gets rid of one PyDict_CheckExact(). What do you prefer?
History
Date User Action Args
2017-04-14 07:36:30serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, xiang.zhang
2017-04-14 07:36:29serhiy.storchakasetmessageid: <1492155389.97.0.996505245009.issue30061@psf.upfronthosting.co.za>
2017-04-14 07:36:29serhiy.storchakalinkissue30061 messages
2017-04-14 07:36:29serhiy.storchakacreate