mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
Document os.device_encoding.
This commit is contained in:
parent
e5a32dcc37
commit
81f1130908
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue