Message 102311 - Python tracker (original) (raw)

Message102311

Author meador.inge
Recipients mark.dickinson, meador.inge
Date 2010-04-04.00:38:04
SpamBayes Score 0.01102856
Marked as misclassified No
Message-id 1270341487.66.0.0219258682559.issue8300@psf.upfronthosting.co.za
In-reply-to
Content
I may be missing something subtle, but how can 'PyNumber_Index(v) != NULL' *and* '!PyInt_Check(v) && !PyLong_Check(v)' both be satisfied in the 'get_pylong' mods? It seems to me that 'PyNumber_Index' only returns non-NULL when the object being returned is an 'int' or 'long'. Attached a patch with the extra check removed and a few more test cases.
History
Date User Action Args
2010-04-04 00:38:07 meador.inge set recipients: + meador.inge, mark.dickinson
2010-04-04 00:38:07 meador.inge set messageid: 1270341487.66.0.0219258682559.issue8300@psf.upfronthosting.co.za
2010-04-04 00:38:06 meador.inge link issue8300 messages
2010-04-04 00:38:06 meador.inge create