On Thu, Jan 17, 2019, 22:11 Steve Dower <steve.do...@python.org wrote:

> For everyone who managed to reply *hours* after Eryk Sun posted the
> correct answer and still get it wrong, here it is again in full.
>
> As a bonus, here's a link to the place where this answer appears in the
> documentation:
> https://docs.python.org/3/library/ctypes.html#ctypes.py_object


Eryk's answer is actually much more useful than the documentation. I've
read that documentation many times, but always decided not to use py_object
because I couldn't figure out what it would actually do...

(I still probably won't use it because IME by the time I'm using ctypes and
PyObject* together I usually need manual control over refcounts, but it's
nice to know what it actually does.)

-n
_______________________________________________
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

Reply via email to