[Python-Dev] PEP 384 status

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 1 00:23:42 CEST 2010


Daniel Stutzbach wrote:

> Likewise, a FILE * isn't safe to pass around, unless I can guarantee 
> that the application really is one big happy family compiled against the 
> same version of the C library.

Given that, it seems to me that it's a mistake for Python
to provide any APIs that take a FILE* directly in the
first place.

Maybe PyObject_Print should be deprecated in favour of
something that takes a Python I/O object instead.

-- 
Greg


More information about the Python-Dev mailing list