Jeroen Demeyer <j.deme...@ugent.be> added the comment:

The idea of #36904 could be used here: define a special kind of tuple, which is 
like an ordinary tuple followed by a C array of PyObject* entries (all 
refcounted), terminated by a NULL to know where it ends. A special deallocation 
function would decref all entries.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36907>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to