This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python2 documentation of the file() built-in function
Type: Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Daniel.Ellis, cben, docs@python, eli.bendersky, python-dev
Priority: normal Keywords: patch

Created on 2012-08-07 10:58 by cben, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
file_update.patch Daniel.Ellis, 2012-08-07 13:33 review
Messages (3)
msg167617 - (view) Author: Cherniavsky Beni (cben) * Date: 2012-08-07 10:58
[followup for issue 12642 which only fixed it for open()]

http://docs.python.org/library/functions.html#file
says the arg names are:
  file(filename[, mode[, bufsize]])
but in practice they are:
  file(name[, mode[, buffering]])
msg167622 - (view) Author: Daniel Ellis (Daniel.Ellis) Date: 2012-08-07 13:33
I've updated the documentation.  This is my first patch, so please let me know if I've done something wrong.
msg167631 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-08-07 18:57
New changeset db1b4aab53eb by Benjamin Peterson in branch '2.7':
make documented file() kw names and actual ones agree (closes #15572)
http://hg.python.org/cpython/rev/db1b4aab53eb
History
Date User Action Args
2022-04-11 14:57:33adminsetgithub: 59777
2012-08-07 18:57:56python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg167631

resolution: fixed
stage: resolved
2012-08-07 13:33:34Daniel.Ellissetfiles: + file_update.patch

nosy: + Daniel.Ellis
messages: + msg167622

keywords: + patch
2012-08-07 11:23:17eli.benderskysetnosy: + eli.bendersky
2012-08-07 10:58:45cbencreate