[issue35961] test_slice: gc_decref: Assertion "gc_get_refs(g) > 0" failed: refcount is too small

Tim Peters report at bugs.python.org
Tue Feb 12 14:20:37 EST 2019


Tim Peters <tim at python.org> added the comment:

Josh, I'd say the speed of this code doesn't matter one whit to anything.  Like you, I'd _prefer_ that the issue be fixed by building "real tuples" that own their own references, which would also (as you showed) allow for briefer, simpler, clearer code.  But I'm OK with playing obscure GC tricks too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35961>
_______________________________________


More information about the Python-bugs-list mailing list