summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/file.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api/file.rst')
-rw-r--r--Doc/c-api/file.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/file.rst b/Doc/c-api/file.rst
index e107268..aa753e5 100644
--- a/Doc/c-api/file.rst
+++ b/Doc/c-api/file.rst
@@ -130,6 +130,14 @@ change in future releases of Python.
.. versionadded:: 2.3
+.. cfunction:: int PyFile_SetEncodingAndErrors(PyFileObject *p, const char *enc, *errors)
+
+ Set the file's encoding for Unicode output to *enc*, and its error
+ mode to *err*. Return 1 on success and 0 on failure.
+
+ .. versionadded:: 2.6
+
+
.. cfunction:: int PyFile_SoftSpace(PyObject *p, int newflag)
.. index:: single: softspace (file attribute)