Author mark.dickinson
Recipients mark.dickinson
Date 2009-12-20.10:31:12
SpamBayes Score 9.96455e-06
Marked as misclassified No
Message-id <1261305073.97.0.212369475826.issue7550@psf.upfronthosting.co.za>
In-reply-to
Content
The following C-API functions:

PyLong_AsLongAndOverflow
PyLong_AsUnsignedLongMask
PyLong_AsLongLong
PyLong_AsUnsignedLongLongMask

call nb_int for inputs that don't satisfy PyLong_Check.  They thus accept 
floats, Decimal instances, etc.  They should probably call nb_index 
instead (or perhaps accept only instances of int).

The uses of these functions within the Python source should be checked, to 
see what consequences (if any) this change would have for Python 
semantics; it's possible that some of these consequences would fall under 
the moratorium (PEP 3003).  In any case, this change probably requires a 
1-release deprecation period.
History
Date User Action Args
2009-12-20 10:31:14mark.dickinsonsetrecipients: + mark.dickinson
2009-12-20 10:31:14mark.dickinsonsetmessageid: <1261305073.97.0.212369475826.issue7550@psf.upfronthosting.co.za>
2009-12-20 10:31:12mark.dickinsonlinkissue7550 messages
2009-12-20 10:31:12mark.dickinsoncreate