From: Georg Brandl Date: Fri, 21 Dec 2007 08:45:42 +0000 (+0000) Subject: Document os.device_encoding. X-Git-Tag: v3.0a3~280 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81f1130908d0bccdaa701887676688e1ca3bc723;p=thirdparty%2FPython%2Fcpython.git Document os.device_encoding. --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 4dbeac38889e..2a8325ab4ea6 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,