Skip to main content

is_shareable

Function is_shareable 

Source
pub fn is_shareable(obj: &PyObject, vm: &VirtualMachine) -> bool
Expand description

Exact-type shareable check used by _interpreters.is_shareable.

This mirrors _PyObject_CheckXIData: only the type’s registration is consulted, so a tuple is “shareable” even when its items are not.