2.2 open

Martin v. Loewis martin at v.loewis.de
Sun Mar 24 17:06:53 EST 2002


Pearu Peterson <pearu at cens.ioc.ee> writes:

> > So open is now a file? That seems a bit odd to me.
> 
> Correction: open is the type of file.

Correction: open is file. Just try it

>>> open is file
1

So open is the type of file objects. The type of file is something
different:

>>> type(file)
<type 'type'>

Regards,
Martin



More information about the Python-list mailing list