Author Phil Frost
Recipients Jeffrey.Kintscher, Phil Frost, facundobatista, mark.dickinson, rhettinger, skrah, tim.peters, vstinner
Date 2019-06-06.18:04:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559844290.17.0.33220672411.issue37168@roundup.psfhosted.org>
In-reply-to
Content
So this is um....interesting....

(gdb) p small_ints[0]
$2 = (PyIntObject *) 0x558ce65df528
(gdb) p *small_ints[0]
$3 = {ob_refcnt = 18, ob_type = 0x7fe019b694c0 <PyInt_Type>, ob_ival = -5}
(gdb) p *small_ints[1]
$4 = {ob_refcnt = 65, ob_type = 0x7fe019b694c0 <PyInt_Type>, ob_ival = -3}
(gdb) p *small_ints[2]
$5 = {ob_refcnt = 204, ob_type = 0x7fe019b694c0 <PyInt_Type>, ob_ival = -3}
(gdb) p *small_ints[3]
$6 = {ob_refcnt = 1872, ob_type = 0x7fe019b694c0 <PyInt_Type>, ob_ival = -2}

When is 1/1=10? When -5 + 1 = -3.

So now I suppose the question is how this comes to be.
History
Date User Action Args
2019-06-06 18:04:50Phil Frostsetrecipients: + Phil Frost, tim.peters, rhettinger, facundobatista, mark.dickinson, vstinner, skrah, Jeffrey.Kintscher
2019-06-06 18:04:50Phil Frostsetmessageid: <1559844290.17.0.33220672411.issue37168@roundup.psfhosted.org>
2019-06-06 18:04:50Phil Frostlinkissue37168 messages
2019-06-06 18:04:50Phil Frostcreate