2.2 open

Robin Becker robin at jessikat.fsnet.co.uk
Sun Mar 24 12:16:12 EST 2002


In article <Pine.LNX.4.21.0203241727480.20510-100000 at cens.ioc.ee>, 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.
>
>> It seems that some built ins now have the type of the object they
>> create. Pretty weird logic.  
>
>Correction: some built ins are the type of the object they create.
>
>Notice that in 2.2 types and classes are unified.
>
yes I heard about that, but the semantics seem strange to me.
open is not a file it is a function that produces an open file. It's now
not even amongst the built ins.

what does X==type(X()) imply?
-- 
Robin Becker



More information about the Python-list mailing list