On Sat, Apr 18, 2020, 01:16 Antoine Pitrou <solip...@pitrou.net> wrote:

> On Fri, 17 Apr 2020 13:59:46 -0600
> Eric Snow <ericsnowcurren...@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").

-eric

>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/MGAMVLARCQXQ2Z2O5MN5W324KF47ATCR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to