| Python Library Reference |
These functions operate on I/O streams referred tousing file descriptors.
Note: this function is intended for low-level I/O and must be appliedto a file descriptor as returned byopen() orpipe(). To close a ``file object'' returned by thebuilt-in functionopen() or bypopen() orfdopen(), use itsclose() method.
pathconf_names dictionary. For configuration variables notincluded in that mapping, passing an integer forname is alsoaccepted.Availability: Unix.Ifname is a string and is not known,ValueError israised. If a specific value forname is not supported by thehost system, even if it is included inpathconf_names, anOSError is raised witherrno.EINVAL for theerror number.
If you're starting with a Python file objectf, first dof.flush(), and then doos.fsync(f.fileno()),to ensure that all internal buffers associated withf are writtento disk.Availability: Unix, and Windows starting in 2.2.3.
1 if the file descriptorfd is open and connected to atty(-like) device, else0.Availability: Unix.0 to set the positionrelative to the beginning of the file;1 to set it relative tothe current position;2 to set it relative to the end of thefile.Availability: Macintosh, Unix, Windows.0777 (octal), and the current umaskvalue is first masked out. Return the file descriptor for the newlyopened file.Availability: Macintosh, Unix, Windows.For a description of the flag and mode values, see the C run-timedocumentation; flag constants (likeO_RDONLY andO_WRONLY) are defined in this module too (see below).
Note: this function is intended for low-level I/O. For normal usage,use the built-in functionopen(), which returns a ``fileobject'' withread() andwrite() methods (and manymore).
(master,slave) for the pty and the tty,respectively. For a (slightly) more portable approach, use thepty module.Availability: Some flavors of Unix.(r,w) usable for reading and writing, respectively.Availability: Unix, Windows.Note: this function is intended for low-level I/O and must be appliedto a file descriptor as returned byopen() orpipe(). To read a ``file object'' returned by thebuilt-in functionopen() or bypopen() orfdopen(), orsys.stdin, use itsread() orreadline() methods.
Note: this function is intended for low-level I/O and must be appliedto a file descriptor as returned byopen() orpipe(). To write a ``file object'' returned by thebuilt-in functionopen() or bypopen() orfdopen(), orsys.stdout orsys.stderr, useitswrite() method.
The following data items are available for use in constructing theflags parameter to theopen() function.
| Python Library Reference |