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 gvanrossum
Recipients JosephArmbruster, gvanrossum, loewis
Date 2007-12-20.04:13:54
SpamBayes Score 0.01847165
Marked as misclassified No
Message-id <1198124035.16.0.0750824585232.issue1666@psf.upfronthosting.co.za>
In-reply-to
Content
Martin, I'm asking you because according to svn blame I copied this from
the int/long integration branch last January.

I looked at the code of _PyLong_FitsInLong(), and I don't understand why
it wants an exact integer.  The code

        if (!PyLong_CheckExact(vv)) {
                PyErr_BadInternalCall();
                return 0;
        }

can just be omitted IMO, to make this problem go away.

There's no documentation for this function, and the only user
(rangeobject.c()) never checks for an error...
History
Date User Action Args
2007-12-20 04:13:55gvanrossumsetspambayes_score: 0.0184717 -> 0.01847165
recipients: + gvanrossum, loewis, JosephArmbruster
2007-12-20 04:13:55gvanrossumsetspambayes_score: 0.0184717 -> 0.0184717
messageid: <1198124035.16.0.0750824585232.issue1666@psf.upfronthosting.co.za>
2007-12-20 04:13:55gvanrossumlinkissue1666 messages
2007-12-20 04:13:54gvanrossumcreate