From: Benjamin Peterson Date: Mon, 23 Mar 2009 02:49:51 +0000 (+0000) Subject: more about the file type's death #5513 X-Git-Tag: v3.1a2~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30364204d3caf04b13264a750b34555072b32e33;p=python more about the file type's death #5513 --- diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index 82f32cac5d..943457312f 100644 --- a/Doc/whatsnew/3.0.rst +++ b/Doc/whatsnew/3.0.rst @@ -813,7 +813,8 @@ Builtins * Removed :func:`execfile`. Instead of ``execfile(fn)`` use ``exec(open(fn).read())``. -* Removed :class:`file`. Use :func:`open`. +* Removed the :class:`file` type. Use :func:`open`. There are now several + different kinds of streams that open can return in the :mod:`io` module. * Removed :func:`reduce`. Use :func:`functools.reduce` if you really need it; however, 99 percent of the time an explicit :keyword:`for`