Thanks for the detailed answer. A further question below.
On Thu, Jan 17, 2019 at 07:50:51AM -0600, eryk sun wrote: > On 1/17/19, Steven D'Aprano <st...@pearwood.info> wrote: > > > > I understand that the only way to pass the address of an object to > > ctypes is to use that id. Is that intentional? > > It's kind of dangerous to pass an object to C without an increment of > its reference count. "Kind of dangerous?" How dangerous? If I am reading this correctly, I think you are saying that using id() in this way is never(?) correct. -- Steve _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com