]> granicus.if.org Git - python/commit
It turns out that some calls return AEDesc records that are "borrowed",
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 17 Jan 2003 23:11:17 +0000 (23:11 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 17 Jan 2003 23:11:17 +0000 (23:11 +0000)
commitb2a57722a8ed9ba035707a50023105cdbfcfdaae
tree2d66a8b55a95b69eb1636c41ba4c0bab821769ae
parentaac8c58f0b053fba8ae8b042bcc3afef47fed943
It turns out that some calls return AEDesc records that are "borrowed",
the AEDesc data shouldn't be disposed when the Python object is.

Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
Include/pymactoolbox.h
Mac/Modules/ae/_AEmodule.c
Mac/Modules/ae/aesupport.py
Python/mactoolboxglue.c