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 mark.dickinson
Recipients akira, mark.dickinson
Date 2012-09-24.20:59:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348520350.45.0.0515803495391.issue16029@psf.upfronthosting.co.za>
In-reply-to
Content
The bug is (not surprisingly) in range_reduce in Objects/rangeobject.c, where 

    return Py_BuildValue("(O(iii))", Py_TYPE(r),

should be

    return Py_BuildValue("(O(lll))", Py_TYPE(r),

But in writing tests for this bug, I fell over another one:


>>> import sys
>>> xrange(0, sys.maxint, sys.maxint-1)
xrange(0, -4, 2147483646)
History
Date User Action Args
2012-09-24 20:59:10mark.dickinsonsetrecipients: + mark.dickinson, akira
2012-09-24 20:59:10mark.dickinsonsetmessageid: <1348520350.45.0.0515803495391.issue16029@psf.upfronthosting.co.za>
2012-09-24 20:59:09mark.dickinsonlinkissue16029 messages
2012-09-24 20:59:09mark.dickinsoncreate