[issue15694] link to "file object" glossary entry in open() and io docs

New submission from Chris Jerdonek: It would be nice if the first sentence of the documentation for the open() built-in function: "Open file and return a corresponding stream. If the file cannot be opened, an OSError is raised." http://docs.python.org/dev/library/functions.html#open linked to the glossary entry for "file object": http://docs.python.org/dev/glossary.html#term-file-object Incidentally, this would be similar to what was done 2.7 documentation of open(): http://docs.python.org/library/functions.html#open Similarly, the introductory overview section of the io module should also link to the glossary entry for "file object": "Concrete objects belonging to any of these categories will often be called streams; another common term is file-like objects." (from http://docs.python.org/dev/library/io.html#overview ) ---------- assignee: docs@python components: Documentation messages: 168392 nosy: cjerdonek, docs@python priority: normal severity: normal status: open title: link to "file object" glossary entry in open() and io docs type: enhancement versions: Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

Changes by Chris Jerdonek <chris.jerdonek@gmail.com>: ---------- keywords: +easy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

Chris Jerdonek added the comment: Attaching patch. I also added two index entries for "file object" and made a couple wording adjustments to the intro paragraph of the io module. ---------- keywords: +patch stage: -> patch review versions: +Python 3.2 Added file: http://bugs.python.org/file26857/issue-15694-1.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

Éric Araujo added the comment: LGTM. ---------- nosy: +eric.araujo, pitrou _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

Antoine Pitrou added the comment: LGTM too. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

Chris Jerdonek added the comment: Thanks. Could either one of you commit this for me? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

Roundup Robot added the comment: New changeset 1d5c451a1365 by R David Murray in branch '3.2': #15694: Link discussion of file objects to glossary entry. http://hg.python.org/cpython/rev/1d5c451a1365 New changeset 977606940531 by R David Murray in branch 'default': Merge #15694: Link discussion of file objects to glossary entry. http://hg.python.org/cpython/rev/977606940531 New changeset 083c37e75c49 by R David Murray in branch '3.2': #15694: reflow paragraph. http://hg.python.org/cpython/rev/083c37e75c49 New changeset d57ea50bc526 by R David Murray in branch 'default': Merge #15694: reflow paragraph. http://hg.python.org/cpython/rev/d57ea50bc526 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________

R. David Murray added the comment: Thanks, Chris. ---------- nosy: +r.david.murray resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15694> _______________________________________
participants (5)
-
Antoine Pitrou
-
Chris Jerdonek
-
R. David Murray
-
Roundup Robot
-
Éric Araujo