Closed
Description
Feature or enhancement
Proposal:
This issue is for adding support of sharing tuples (and tuples of tuples) through the crossinterp API and the interpreters module when that arrives.
The data structure will have to have a variable length.
struct _shared_tuple_data {
Py_ssize_t len;
_PyCrossInterpreterData **data;
};
It will use the xid registry to lookup the type values in the tuple, then encode them using the crossinterpdatafunc callbacks. This should work recursively if the tuple contains a tuple.
PR to follow.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done