2.2 open
Pearu Peterson
pearu at cens.ioc.ee
Sun Mar 24 10:34:46 EST 2002
On Sun, 24 Mar 2002, Robin Becker wrote:
> but now I see
>
> >>> __import__
> <built-in function __import__>
> >>> type(__import__)
> <type 'builtin_function_or_method'>
> >>> open
> <type 'file'>
> >>> type(open)
> <type 'type'>
>
>
> 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.
Regards,
Pearu
More information about the Python-list
mailing list