Commit 81f11309 authored by Georg Brandl's avatar Georg Brandl

Document os.device_encoding.

parent e5a32dcc
...@@ -401,6 +401,12 @@ by file descriptors. ...@@ -401,6 +401,12 @@ by file descriptors.
:func:`fdopen`, use its :meth:`close` method. :func:`fdopen`, use its :meth:`close` method.
.. function:: device_encoding(fd)
Return a string describing the encoding of the device associated with *fd*
if it is connected to a terminal; else return :const:`None`.
.. function:: dup(fd) .. function:: dup(fd)
Return a duplicate of file descriptor *fd*. Availability: Macintosh, Unix, Return a duplicate of file descriptor *fd*. Availability: Macintosh, Unix,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment