[Python-Dev] PyObject_New vs PyObject_NEW

Martin v. Löwis martin@v.loewis.de
13 Mar 2003 08:46:13 +0100


David Abrahams <dave@boost-consulting.com> writes:

> martin@v.loewis.de (Martin v. LŽöwis) 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.  
> >
> > No. You also cannot pass struct FILE* from one C library to the other;
> > file locking will then crash.
> 
> A file is a resource.

Yes, but printf is neither allocation nor deallocation.

Regards,
Martin