Author socketpair
Recipients socketpair
Date 2012-05-23.09:25:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337765129.86.0.0917200779683.issue14886@psf.upfronthosting.co.za>
In-reply-to
Content
Pure-python implementation:
    if isinstance(o, (list, tuple)):

C implementation:
    if (PyList_Check(obj) || PyTuple_Check(obj))

This make real difference (!) in my code.

So, please change pure-python implementation to:
    if type(o) in (list, tuple):
Or, fix C implementation to: /* intentionally forgot (only for this example) to check if return value is -1 */
    if (PyObject_IsInstance(obj, PyList_Type) || PyObject_IsInstance(obj, PyTuple_Type)
History
Date User Action Args
2012-05-23 09:25:29socketpairsetrecipients: + socketpair
2012-05-23 09:25:29socketpairsetmessageid: <1337765129.86.0.0917200779683.issue14886@psf.upfronthosting.co.za>
2012-05-23 09:25:29socketpairlinkissue14886 messages
2012-05-23 09:25:28socketpaircreate