Question about python 2.4 documentation

Peter Otten __peter__ at web.de
Tue Apr 19 05:03:08 EDT 2005


Fouff wrote:

> I have a small question concerning the functions open(...) and file(...)
> with python 2.4

>> The intent is for open() to continue to be preferred for use as a factory
>> function which returns a new file object.

versus

>> The previous spelling, open(), is retained for compatibility, and is an
>> alias for file().

> what is the favorite function you recommend me to use ?

The former has BDFL blessing. Let Guido speak:

http://mail.python.org/pipermail/python-dev/2004-July/045921.html

Peter



More information about the Python-list mailing list