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: os.open() Documentation
Type: enhancement Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, guettli
Priority: normal Keywords:

Created on 2006-03-06 13:04 by guettli, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27687 - (view) Author: Thomas Guettler (guettli) * Date: 2006-03-06 13:04
Hi,

I think the note in the docu could be improved:

"""To read a ``file object'' returned by the built-in
function open() or by popen() or fdopen(), or
sys.stdin, use its read() or readline() methods."""

(I think) a better note:

"""To read a ``file object'' returned by the built-in
function open(), popen(), fdopen() or sys.stdin, use
its read() or readline() methods. You can convert the
file descriptor returned by os.open() to a file object
with [LINK os.fdopen()]"""

The same note is used for os.write().

At os.open() there should be a link to os.fdopen(), too.
msg27688 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-31 19:20
Logged In: YES 
user_id=849994

Added a note in rev. 43498.
History
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42987
2006-03-06 13:04:49guettlicreate