A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/045966.html below:

[Python-Dev] file() or open()?

[Python-Dev] file() or open()?Tim Peters tim.peters at gmail.com
Thu Jul 8 06:41:18 CEST 2004
If you do a cvs annotate on Misc/NEWS, you'll find that Guido gets the
blame, in rev 1.255, for this blurb:

"""
- The builtin file type can be subclassed now.  In the usual pattern,
 "file" is the name of the builtin type, and file() is a new builtin
 constructor, with the same signature as the builtin open() function.
 file() is now the preferred way to open a file.
"""

However, just as I finished pasting that in, he used the time machine
to shift the blame on me, in rev 1.242.  My memory was also altered,
so that I seem to really believe that was my understanding at the
time.  But I usually continued to use open() anyway, proving something
or other.  I'm still unclear about what (if anything) file() should be
used for.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4