Message344847
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. |
|
Date |
User |
Action |
Args |
2019-06-06 18:04:50 | Phil Frost | set | recipients:
+ Phil Frost, tim.peters, rhettinger, facundobatista, mark.dickinson, vstinner, skrah, Jeffrey.Kintscher |
2019-06-06 18:04:50 | Phil Frost | set | messageid: <1559844290.17.0.33220672411.issue37168@roundup.psfhosted.org> |
2019-06-06 18:04:50 | Phil Frost | link | issue37168 messages |
2019-06-06 18:04:50 | Phil Frost | create | |
|