mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
more about the file type's death #5513
This commit is contained in:
parent
52c3bf1aa5
commit
30364204d3
1 changed files with 2 additions and 1 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue