Lines Matching defs:module
2 * C Extension module to test Python interpreter C APIs.
4 * The 'test_*' functions exported by this module are run as part of the
8 /* This module tests the public (Include/ and Include/cpython/) C API.
1155 assert(strcmp(PyUnicode_AsUTF8(tp_name), "module") == 0);
3275 char *module;
3287 #define KNOWN_CAPSULE(module, name) { module "." name, module, name }
3341 for (known = &known_capsules[0]; known->module != NULL; known++) {
3349 sprintf(buffer, "%s module: \"%s\" attribute: \"%s\"", \
3350 x, known->module, known->attribute); \
3355 PyObject *module = PyImport_ImportModule(known->module);
3356 if (module) {
3359 Py_DECREF(module);
3362 object = PyObject_GetAttrString(module, known->attribute);
3364 Py_DECREF(module);
3371 Py_DECREF(module);
3376 Py_DECREF(module);
3387 Py_DECREF(module);
4463 "docstring_with_invalid_signature($module, /, boo)\n"
4469 "docstring_with_invalid_signature2($module, /, boo)\n"
4477 "docstring_with_signature($module, /, sig)\n"
4484 "docstring_with_signature_but_no_doc($module, /, sig)\n"
4490 "docstring_with_signature_and_extra_newlines($module, /, parameter)\n"
4498 "docstring_with_signature_with_defaults(module, s='avocado',\n"
5524 bad_get(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
5693 pynumber_tobase(PyObject *module, PyObject *args)
6404 PyObject *module = PyFunction_GetModule(func);
6405 if (module != NULL) {
6406 Py_INCREF(module);
6407 return module;
8001 /* Per PEP 489, this module will not be converted to multi-phase initialization