Author serhiy.storchaka
Recipients benjamin.peterson, pitrou, rhettinger, serhiy.storchaka
Date 2013-10-23.20:23:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382559825.42.0.933456650374.issue19369@psf.upfronthosting.co.za>
In-reply-to
Content
What if use _PyObject_HasLen?

if (_PyObject_HasLen(o)) {
    res = PyObject_Length(o);
    ...
}

hint = _PyObject_LookupSpecial(o, &PyId___length_hint__);
...
History
Date User Action Args
2013-10-23 20:23:45serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pitrou, benjamin.peterson
2013-10-23 20:23:45serhiy.storchakasetmessageid: <1382559825.42.0.933456650374.issue19369@psf.upfronthosting.co.za>
2013-10-23 20:23:45serhiy.storchakalinkissue19369 messages
2013-10-23 20:23:45serhiy.storchakacreate