April 18, 2020
12:08 a.m.
On Fri, 17 Apr 2020 13:59:46 -0600 Eric Snow <ericsnowcurrently@gmail.com> wrote:
For bytes or buffer objects, I understand that you propose to share the exact same PyObject objects between interpreters, at least in the first implementation.
It may be better to have one proxy object in each interpreter which would control which interpreters can read and which interpreters can write into the object. It's a similar but more complex issue than singletons.
It isn't the same Python object. It is the buffer that gets shared (for objects that support the buffer protocol).
When such a buffer dies, in which interpreter is the original object's destructor called? Regards Antoine.