[Patches] [ python-Patches-1094011 ] Docs for file() vs open()

SourceForge.net noreply at sourceforge.net
Fri Jan 7 05:35:22 CET 2005


Patches item #1094011, was opened at 2005-01-01 02:50
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1094011&group_id=5470

Category: Documentation
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Reinhold Birkenfeld (birkenfeld)
Assigned to: Raymond Hettinger (rhettinger)
Summary: Docs for file() vs open()

Initial Comment:
This is in reference to the thread on python-dev
starting 2004/07/07, subject "file() or open()?". Guido
stated there that one should use open() to open files:

"""Anyway, here's my future-proof distinction: use
open() as the factory function, and file for
type-testing."""

The docs, however, still convince the reader that
open() is retained for backwards compatibility and near
deprecation. This patch corrects the issue, mostly
using Guido's own new wording.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1094011&group_id=5470


More information about the Patches mailing list