summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-21 08:45:42 (GMT)
committerGeorg Brandl <georg@python.org>2007-12-21 08:45:42 (GMT)
commit81f1130908d0bccdaa701887676688e1ca3bc723 (patch)
tree33927630a96d168cd5db288d4b3f1826f4d2859c /Doc
parente5a32dcc37b32470d908a30a06c419ee0f8381f0 (diff)
downloadcpython-81f1130908d0bccdaa701887676688e1ca3bc723.zip
cpython-81f1130908d0bccdaa701887676688e1ca3bc723.tar.gz
cpython-81f1130908d0bccdaa701887676688e1ca3bc723.tar.bz2
Document os.device_encoding.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 4dbeac3..2a8325a 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -401,6 +401,12 @@ by file descriptors.
: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)
Return a duplicate of file descriptor *fd*. Availability: Macintosh, Unix,