FILE object in Python3.0 extension modules

Gabriel Genellina gagsl-py2 at
Sat May 30 06:11:33 CEST 2009

En Fri, 29 May 2009 23:24:32 -0300, Benjamin Peterson  
<benjamin at> escribió:

> Gabriel Genellina <gagsl-py2 <at>> writes:
>> But you have to import the io module first, don't you? That's not  
>> usually
>> necesary for most built in types -- e.g. PyFloat_Check just checks for a
>> float object.
> Well, in 3.x, file is not longer a builtin type.

Ok, seems the old "file" type has been demoted and atomized...

Gabriel Genellina

More information about the Python-list mailing list