Phil Frost <phil.fr...@postmates.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37168> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com