Home
last modified time | relevance | path

Searched refs:search_function (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Include/
Dcodecs.h27 PyObject *search_function
35 PyObject *search_function
/third_party/python/Lib/encodings/
D__init__.py71 def search_function(encoding): function
156 codecs.register(search_function)
/third_party/python/Modules/
D_codecsmodule.c62 _codecs_register(PyObject *module, PyObject *search_function) in _codecs_register() argument
65 if (PyCodec_Register(search_function)) in _codecs_register()
82 _codecs_unregister(PyObject *module, PyObject *search_function) in _codecs_unregister() argument
85 if (PyCodec_Unregister(search_function) < 0) { in _codecs_unregister()
/third_party/python/Python/
Dcodecs.c34 int PyCodec_Register(PyObject *search_function) in PyCodec_Register() argument
39 if (search_function == NULL) { in PyCodec_Register()
43 if (!PyCallable_Check(search_function)) { in PyCodec_Register()
47 return PyList_Append(interp->codec_search_path, search_function); in PyCodec_Register()
54 PyCodec_Unregister(PyObject *search_function) in PyCodec_Unregister() argument
67 if (item == search_function) { in PyCodec_Unregister()
/third_party/python/Doc/c-api/
Dcodec.rst6 .. c:function:: int PyCodec_Register(PyObject *search_function)
13 .. c:function:: int PyCodec_Unregister(PyObject *search_function)
/third_party/python/Lib/test/
Dtest_codecs.py1652 search_function = mock.Mock()
1653 codecs.register(search_function)
1655 search_function.assert_called_with(name)
1656 search_function.reset_mock()
1658 codecs.unregister(search_function)
1660 search_function.assert_not_called()
3497 def search_function(encoding): function
3503 codecs.register(search_function)
3504 self.addCleanup(codecs.unregister, search_function)
Dtest_unicode.py24 def search_function(encoding): function
61 codecs.register(search_function)
62 self.addCleanup(codecs.unregister, search_function)
/third_party/python/Doc/library/
Dcodecs.rst159 .. function:: register(search_function)
171 .. function:: unregister(search_function)
/third_party/python/Doc/data/
Drefcounts.dat278 PyCodec_Register:PyObject*:search_function:+1: