[Python-Dev] PyObject_New vs PyObject_NEW

David Abrahams dave@boost-consulting.com
Wed, 12 Mar 2003 17:15:12 -0500


martin@v.loewis.de (Martin v. L=F6wis) writes:

> David Abrahams <dave@boost-consulting.com> writes:
>
>> Sure, but that's only an issue if you are allocating resources in one
>> runtime lib and deallocating in another AFAIK.=20=20
>
> No. You also cannot pass struct FILE* from one C library to the other;
> file locking will then crash.

A file is a resource.

--=20
Dave Abrahams
Boost Consulting
www.boost-consulting.com