|
|
 |
ctypes-users
[ctypes-users] PYFUNCTYPE, py_object and reference counting
by Lenard Lindstrom other posts by this author
Nov 18 2006 10:15PM messages near this date
Re: [ctypes-users] Function pointers as arguments or structure members
|
Re: [ctypes-users] PYFUNCTYPE, py_object and reference counting
Forgive me if this has been discussed before. For Python api
functions does ctypes assume a py_object return type is a new
reference and a py_object argument is a borrowed reference?
PyList_GetItem returns a borrowed reference. PyList_SetItem steals a
reference. I see no reason to call these functions directly. However,
since they are accessible from ctypes it makes sense that either it
can handle them correctly or they are documented as unsafe to use.
Lenard Lindstrom
<len-l@[...].net>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ctypes-users mailing list
ctypes-users@[...].net
https://lists.sourceforge.net/lists/listinfo/ctypes-users
Thread:
Lenard Lindstrom
Thomas Heller
Lenard Lindstrom
Thomas Heller
|
|
|
 |
|