[Python-checkins] r87520 - python/branches/py3k/Doc/library/ctypes.rst
victor.stinner
python-checkins at python.org
Tue Dec 28 01:59:02 CET 2010
Author: victor.stinner
Date: Tue Dec 28 01:59:02 2010
New Revision: 87520
Log:
Issue #8966: Remove the documentation of ctypes.set_conversion_mode()
Function removed by r83195.
Modified:
python/branches/py3k/Doc/library/ctypes.rst
Modified: python/branches/py3k/Doc/library/ctypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/ctypes.rst (original)
+++ python/branches/py3k/Doc/library/ctypes.rst Tue Dec 28 01:59:02 2010
@@ -1930,22 +1930,6 @@
but it is possible to enlarge the buffer.
-.. function:: set_conversion_mode(encoding, errors)
-
- This function sets the rules that ctypes objects use when converting between
- bytes objects and (unicode) strings. *encoding* must be a string specifying an
- encoding, like ``'utf-8'`` or ``'mbcs'``, *errors* must be a string specifying
- the error handling on encoding/decoding errors. Examples of possible values are
- ``'strict'``, ``'replace'``, or ``'ignore'``.
-
- :func:`set_conversion_mode` returns a 2-tuple containing the previous
- conversion rules. On windows, the initial conversion rules are ``('mbcs',
- 'ignore')``, on other systems ``('ascii', 'strict')``.
-
- You can set the *encoding* to ``'undefined'`` to completely disable automatic
- conversions.
-
-
.. function:: set_errno(value)
Set the current value of the ctypes-private copy of the system :data:`errno`
More information about the Python-checkins
mailing list