On Mon, Jul 12, 2010 at 10:19 PM, Nick Coghlan <[email protected]> wrote:
> On Tue, Jul 13, 2010 at 3:35 AM, Petre Galan <[email protected]> wrote:
>> ival should not be resolved through PyLong_AsLong, but through
>> functionality/interface like PyNumber_Long

+1, but I'd prefer it if PyNumber_Index were used, rather than PyNumber_Long.
It shouldn't be possible to pass a Decimal instance to something expecting an
integer argument.

Mark
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to