(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-msvcrt.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-msvcrt.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/msvcrt-console.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 20.1 msvcrt - Useful Up: 20.1 msvcrt - Useful Next: 20.1.2 Console I/O
20.1.1 File Operations
- locking (fd, mode, nbytes)
- Lock part of a file based on a file descriptor from the C runtime. Raises IOError on failure.
- setmode (fd, flags)
- Set the line-end translation mode for the file descriptor fd. To set it to text mode, flags should be os.O_TEXT; for binary, it should be os.O_BINARY.
- open_osfhandle (handle, flags)
- Create a C runtime file descriptor from the file handle handle. The flags parameter should be a bit-wise OR of os.O_APPEND, os.O_RDONLY, and os.O_TEXT. The returned file descriptor may be used as a parameter to os.fdopen() to create a file object.
- get_osfhandle (fd)
- Return the file handle for the file descriptor fd. Raises IOError if fd is not recognized.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-msvcrt.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-msvcrt.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/msvcrt-console.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 20.1 msvcrt - Useful Up: 20.1 msvcrt - Useful Next: 20.1.2 Console I/O
See About this document... for information on suggesting changes.