Author mark.dickinson
Recipients ajaksu2, dingo, giampaolo.rodola, jyasskin, loewis, mark.dickinson, rhettinger
Date 2008-12-21.14:55:50
SpamBayes Score 0.000117448
Marked as misclassified No
Message-id <1229871353.97.0.0822058837957.issue4707@psf.upfronthosting.co.za>
In-reply-to
Content
Cause of segfault was doing Py_XDECREF on a pointer that hadn't been 
initialised to NULL.

Here's a fixed patch.

I still get the instant result:

>>> round(2, -2**31+1)
2

which is a little odd.  It's the correct result, but I can't see how
it gets there: under the current algorithm, there should be a
10**(2**31-1) happening somewhere, and that would take a *lot* of time 
and memory.  Will investigate.
History
Date User Action Args
2008-12-21 14:55:54mark.dickinsonsetrecipients: + mark.dickinson, loewis, rhettinger, giampaolo.rodola, ajaksu2, jyasskin, dingo
2008-12-21 14:55:53mark.dickinsonsetmessageid: <1229871353.97.0.0822058837957.issue4707@psf.upfronthosting.co.za>
2008-12-21 14:55:53mark.dickinsonlinkissue4707 messages
2008-12-21 14:55:53mark.dickinsoncreate