ZeD ha scritto: > 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().
That's strange... however, since there are no doubts about open(), I'll use that :) -- GreyFox -- http://mail.python.org/mailman/listinfo/python-list