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 meador.inge
Recipients mark.dickinson, meador.inge
Date 2010-04-04.00:38:04
SpamBayes Score 0.01102856
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2010-04-04 00:38:07meador.ingesetrecipients: + meador.inge, mark.dickinson
2010-04-04 00:38:07meador.ingesetmessageid: <>
2010-04-04 00:38:06meador.ingelinkissue8300 messages
2010-04-04 00:38:06meador.ingecreate