[ python-Bugs-1630863 ] PyLong_AsLong doesn't check tp_as_number

SourceForge.net noreply at sourceforge.net
Thu Jan 11 23:16:23 CET 2007


Bugs item #1630863, was opened at 2007-01-08 20:06
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1630863&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Roger Upole (rupole)
>Assigned to: Martin v. Löwis (loewis)
Summary: PyLong_AsLong doesn't check tp_as_number

Initial Comment:
Both PyInt_AsLong and PyLong_AsLongLong check if an object's type has PyNumberMethods defined.  However, PyLong_AsLong does not, causing conversion to fail for
objects which can legitimately be converted to a long.
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1630863&group_id=5470


More information about the Python-bugs-list mailing list