Lines Matching refs:name
148 /* First, try to lookup the name in the registry dictionary */
616 /* Register the error handling callback function error under the name
617 name. This function will be called by the codec when it encounters
619 callback name, when name is specified as the error parameter
622 int PyCodec_RegisterError(const char *name, PyObject *error)
632 name, error);
636 name error. As a special case NULL can be passed, in which case
638 PyObject *PyCodec_LookupError(const char *name)
646 if (name==NULL)
647 name = "strict";
648 handler = _PyDict_GetItemStringWithError(interp->codec_error_registry, name);
653 PyErr_Format(PyExc_LookupError, "unknown error handler name '%.400s'", name);
1410 const char *name;
1522 int res = PyCodec_RegisterError(methods[i].name, func);