On Sat, 18 Apr 2020 10:08:27 -0600 Eric Snow <ericsnowcurrently@gmail.com> wrote:
On Sat, Apr 18, 2020, 01:16 Antoine Pitrou <solipsis@pitrou.net> wrote:
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?
In the original interpreter (via a "pending call").
Great, thank you! Regards Antoine.