diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-10 07:10:12 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-10 07:10:12 (GMT) |
commit | 5467d4c0e31e9db305a4899a44d7978f83e96649 (patch) | |
tree | cf52a41492d6c1271a4f32ace0a62237daceb63a /Doc/api | |
parent | b7b4ce27f74901258f0b3af1fb9483d8f38feab8 (diff) | |
download | cpython-5467d4c0e31e9db305a4899a44d7978f83e96649.zip cpython-5467d4c0e31e9db305a4899a44d7978f83e96649.tar.gz cpython-5467d4c0e31e9db305a4899a44d7978f83e96649.tar.bz2 |
Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/concrete.tex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index f8cbc28..2c14596 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -2029,6 +2029,12 @@ implementation detail and may change in future releases of Python. creation. \end{cfuncdesc} +\begin{cfuncdesc}{int}{PyFile_Encoding}{PyFileObject *p, char *enc} + Set the file's encoding for Unicode output to \var{enc}. Return + 1 on success and 0 on failure. + \versionadded{2.3} +\end{cfuncdesc} + \begin{cfuncdesc}{int}{PyFile_SoftSpace}{PyObject *p, int newflag} This function exists for internal use by the interpreter. Sets the \member{softspace} attribute of \var{p} to \var{newflag} and |