Home
last modified time | relevance | path

Searched refs:set_conversion_mode (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/ctypes/test/
Dtest_unicode.py15 self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict")
18 ctypes.set_conversion_mode(*self.prev_conv_mode)
22 ctypes.set_conversion_mode("ascii", "strict")
32 ctypes.set_conversion_mode("ascii", "replace")
40 ctypes.set_conversion_mode("ascii", "ignore")
49 ctypes.set_conversion_mode("latin-1", "strict")
56 ctypes.set_conversion_mode("ascii", "strict")
60 ctypes.set_conversion_mode("ascii", "replace")
68 ctypes.set_conversion_mode("ascii", "ignore")
86 self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict")
[all …]
Dtest_parameters.py9 from _ctypes import set_conversion_mode
13 self.prev_conv_mode = set_conversion_mode("ascii", "strict")
17 from _ctypes import set_conversion_mode
21 set_conversion_mode(*self.prev_conv_mode)
/external/python/cpython2/Lib/ctypes/
D__init__.py279 from _ctypes import set_conversion_mode
284 set_conversion_mode("mbcs", "ignore")
286 set_conversion_mode("ascii", "strict")
/external/python/cpython2/Modules/_ctypes/
Dcallproc.c1689 set_conversion_mode(PyObject *self, PyObject *args) in set_conversion_mode() function
1928 {"set_conversion_mode", set_conversion_mode, METH_VARARGS, set_conversion_mode_doc},
/external/python/cpython2/Doc/library/
Dctypes.rst1989 .. function:: set_conversion_mode(encoding, errors)
1997 :func:`set_conversion_mode` returns a 2-tuple containing the previous
/external/python/cpython2/Misc/
DNEWS132 ctypes.set_conversion_mode(). Patch by Xiang Zhang.