Cheat sheet
ZeD
vito.detullio at gmail.com
Sat Dec 29 03:58:27 EST 2007
Michele Simionato wrote:
> Python 2.4.4 (#2, Oct 4 2007, 22:02:31)
>>>> file is open
> True
>
> Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
>>>> file is open
> False
>
> Nowadays file is no more an alias for open.
curious... maybe it's me, but I can't find a "What's New in Python" where
this is said... also, in 2.6 docs (and also in 2.5) remains this footer:
http://docs.python.org/dev/library/stdtypes.html#id14
http://www.python.org/doc/2.5/lib/bltin-file-objects.html#foot4449
file() is new in Python 2.2. The older built-in open() is an alias for
file().
--
Under construction
More information about the Python-list
mailing list