Lines Matching refs:code
471 This is revolting, but delicate code duplication is worse: "almost
472 exactly the same" code is needed to test long long, but the ubiquitous
950 /* Test the L code for PyArg_ParseTuple. This should deliver a long long
976 "L code returned wrong value for long 42");
991 "L code returned wrong value for int 42");
1533 /* This function not only tests the 'k' getargs code, but also the
1563 "k code returned wrong value for long 0xFFF...FFF");
1584 "k code returned wrong value for long -0xFFF..000042");
2032 "u code returned wrong value for u'test'");
2040 "u# code returned wrong values for u'test'");
2073 "Z code returned wrong value for 'test'");
2076 "Z code returned wrong value for None");
2092 "Z# code returned wrong values for 'test'");
2096 "Z# code returned wrong values for None'");
3022 * `thread_done` when it's finished. The driver code has to know when the
3160 /* The u type code was added in Python 2.5. */
3787 /* To run some code in a sub-interpreter. */
3791 const char *code;
3798 &code))
3814 r = PyRun_SimpleStringFlags(code, &cflags);
4330 /* Most part of the following code is inherited from the pyfailmalloc project
6046 PyObject *code, *globals, *locals;
6047 if (!PyArg_ParseTuple(args, "OOO", &code, &globals, &locals)) {
6050 if (!PyCode_Check(code)) {
6051 PyErr_SetString(PyExc_TypeError, "argument must be a code object");
6056 return (PyObject *)PyFrame_New(tstate, (PyCodeObject *)code, globals, locals);
6075 PyObject *code;
6090 &code,
6102 if (!PyCode_Check(code)) {
6104 "code must be a Python code object");
6188 code,
6380 PyObject *code = PyFunction_GetCode(func);
6381 if (code != NULL) {
6382 Py_INCREF(code);
6383 return code;