summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/file.rst
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-06-01 07:20:46 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-06-01 07:20:46 (GMT)
commit99815892f685e9ab20dfdade9c1e8a295139140c (patch)
tree92d2aeaee0a925df71471b296c5fa7ff28a451b8 /Doc/c-api/file.rst
parent7f7ca35f5bf22b698135de62d2179a13f5c94c7f (diff)
downloadcpython-99815892f685e9ab20dfdade9c1e8a295139140c.zip
cpython-99815892f685e9ab20dfdade9c1e8a295139140c.tar.gz
cpython-99815892f685e9ab20dfdade9c1e8a295139140c.tar.bz2
New environment variable PYTHONIOENCODING.
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)