Searched refs:set_conversion_mode (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/ctypes/test/ |
D | test_unicode.py | 15 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 …]
|
D | test_parameters.py | 9 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__.py | 279 from _ctypes import set_conversion_mode 284 set_conversion_mode("mbcs", "ignore") 286 set_conversion_mode("ascii", "strict")
|
/external/python/cpython2/Modules/_ctypes/ |
D | callproc.c | 1689 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/ |
D | ctypes.rst | 1989 .. function:: set_conversion_mode(encoding, errors) 1997 :func:`set_conversion_mode` returns a 2-tuple containing the previous
|
/external/python/cpython2/Misc/ |
D | NEWS | 132 ctypes.set_conversion_mode(). Patch by Xiang Zhang.
|