[issue15572] Python2 documentation of the file() built-in function

New submission from Cherniavsky Beni: [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]]) ---------- assignee: docs@python components: Documentation messages: 167617 nosy: cben, docs@python priority: normal severity: normal status: open title: Python2 documentation of the file() built-in function versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15572> _______________________________________

Changes by Eli Bendersky <eliben@gmail.com>: ---------- nosy: +eli.bendersky _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15572> _______________________________________

Daniel Ellis added the comment: I've updated the documentation. This is my first patch, so please let me know if I've done something wrong. ---------- keywords: +patch nosy: +Daniel.Ellis Added file: http://bugs.python.org/file26721/file_update.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15572> _______________________________________

Roundup Robot added the comment: 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 ---------- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15572> _______________________________________
participants (4)
-
Cherniavsky Beni
-
Daniel Ellis
-
Eli Bendersky
-
Roundup Robot