ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ctypes-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved