On Sat, 18 Apr 2020 10:08:27 -0600 Eric Snow <[email protected]> wrote: > On Sat, Apr 18, 2020, 01:16 Antoine Pitrou <[email protected]> wrote: > > > On Fri, 17 Apr 2020 13:59:46 -0600 > > Eric Snow <[email protected]> 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. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/M2PWQXFCYJOPZTJPL664NJOPHQPEITIX/ Code of Conduct: http://python.org/psf/codeofconduct/
