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