Lines Matching refs:PyObject
17 static PyObject *TestError; /* set to exception object in init */
21 static PyObject *
41 static PyObject*
50 return (PyObject*)NULL;
53 static PyObject*
54 test_config(PyObject *self)
75 static PyObject*
76 test_list_api(PyObject *self)
78 PyObject* list;
84 if (list == (PyObject*)NULL)
85 return (PyObject*)NULL;
88 PyObject* anint = PyInt_FromLong(i);
89 if (anint == (PyObject*)NULL) {
91 return (PyObject*)NULL;
99 return (PyObject*)NULL;
103 PyObject* anint = PyList_GET_ITEM(list, i);
108 return (PyObject*)NULL;
123 PyObject *dict = PyDict_New();
124 PyObject *v, *k;
136 PyObject *o;
162 static PyObject*
163 test_dict_iteration(PyObject* self)
185 sizeof(PyObject), /* Basic object size */
223 static PyObject*
224 test_lazy_hash_inheritance(PyObject* self)
227 PyObject *obj;
238 obj = PyObject_New(PyObject, type);
292 broken_buffer_getbuffer(PyObject *self, Py_buffer *view, int flags)
313 sizeof(PyObject), /* Basic object size */
351 static PyObject*
352 test_broken_memoryview(PyObject* self)
354 PyObject *obj = PyObject_New(PyObject, &_MemoryViewTester_Type);
355 PyObject *res;
380 static PyObject *
381 test_to_contiguous(PyObject* self, PyObject *noargs)
428 static PyObject *
429 test_from_contiguous(PyObject* self, PyObject *noargs)
497 static PyObject *
512 static PyObject *
513 test_long_api(PyObject* self)
527 static PyObject *
542 static PyObject *
543 test_longlong_api(PyObject* self, PyObject *args)
560 static PyObject *
561 test_long_and_overflow(PyObject *self)
563 PyObject *num, *one, *temp;
725 static PyObject *
726 test_long_long_and_overflow(PyObject *self)
728 PyObject *num, *one, *temp;
889 static PyObject *
890 test_L_code(PyObject *self)
892 PyObject *tuple, *num;
933 static PyObject *
939 static PyObject *
949 PyObject *arg, *res;
987 static PyObject *
988 test_buildvalue_N(PyObject *self, PyObject *noargs)
990 PyObject *arg, *res;
1027 static PyObject *
1028 get_args(PyObject *self, PyObject *args)
1037 static PyObject *
1038 get_kwargs(PyObject *self, PyObject *args, PyObject *kwargs)
1048 static PyObject *
1049 getargs_tuple(PyObject *self, PyObject *args)
1058 static PyObject *getargs_keywords(PyObject *self, PyObject *args, PyObject *kwargs)
1076 static PyObject *
1077 getargs_b(PyObject *self, PyObject *args)
1085 static PyObject *
1086 getargs_B(PyObject *self, PyObject *args)
1094 static PyObject *
1095 getargs_h(PyObject *self, PyObject *args)
1103 static PyObject *
1104 getargs_H(PyObject *self, PyObject *args)
1112 static PyObject *
1113 getargs_I(PyObject *self, PyObject *args)
1121 static PyObject *
1122 getargs_k(PyObject *self, PyObject *args)
1130 static PyObject *
1131 getargs_i(PyObject *self, PyObject *args)
1139 static PyObject *
1140 getargs_l(PyObject *self, PyObject *args)
1148 static PyObject *
1149 getargs_n(PyObject *self, PyObject *args)
1158 static PyObject *
1159 getargs_L(PyObject *self, PyObject *args)
1167 static PyObject *
1168 getargs_K(PyObject *self, PyObject *args)
1179 static PyObject *
1180 test_k_code(PyObject *self)
1182 PyObject *tuple, *num;
1232 static PyObject *
1233 getargs_f(PyObject *self, PyObject *args)
1241 static PyObject *
1242 getargs_d(PyObject *self, PyObject *args)
1250 static PyObject *
1251 getargs_D(PyObject *self, PyObject *args)
1259 static PyObject *
1260 getargs_S(PyObject *self, PyObject *args)
1262 PyObject *obj;
1269 static PyObject *
1270 getargs_Y(PyObject *self, PyObject *args)
1272 PyObject *obj;
1280 static PyObject *
1281 getargs_U(PyObject *self, PyObject *args)
1283 PyObject *obj;
1291 static PyObject *
1292 getargs_c(PyObject *self, PyObject *args)
1300 static PyObject *
1301 getargs_s(PyObject *self, PyObject *args)
1309 static PyObject *
1310 getargs_s_star(PyObject *self, PyObject *args)
1313 PyObject *bytes;
1321 static PyObject *
1322 getargs_s_hash(PyObject *self, PyObject *args)
1331 static PyObject *
1332 getargs_t_hash(PyObject *self, PyObject *args)
1341 static PyObject *
1342 getargs_z(PyObject *self, PyObject *args)
1353 static PyObject *
1354 getargs_z_star(PyObject *self, PyObject *args)
1357 PyObject *bytes;
1370 static PyObject *
1371 getargs_z_hash(PyObject *self, PyObject *args)
1383 static PyObject *
1384 getargs_w(PyObject *self, PyObject *args)
1400 static PyObject *
1401 getargs_w_hash(PyObject *self, PyObject *args)
1417 static PyObject *
1418 getargs_w_star(PyObject *self, PyObject *args)
1421 PyObject *result;
1449 static PyObject *
1450 getargs_u(PyObject *self, PyObject *args)
1460 static PyObject *
1461 getargs_u_hash(PyObject *self, PyObject *args)
1472 static PyObject *
1473 getargs_es(PyObject *self, PyObject *args)
1475 PyObject *arg, *result;
1488 static PyObject *
1489 getargs_et(PyObject *self, PyObject *args)
1491 PyObject *arg, *result;
1504 static PyObject *
1505 getargs_es_hash(PyObject *self, PyObject *args)
1507 PyObject *arg, *result;
1528 static PyObject *
1529 getargs_et_hash(PyObject *self, PyObject *args)
1531 PyObject *arg, *result;
1559 static PyObject *
1560 test_u_code(PyObject *self)
1562 PyObject *tuple, *obj;
1600 static PyObject *
1601 test_widechar(PyObject *self)
1610 PyObject *wide, *utf8;
1642 static PyObject *
1643 unicode_encodedecimal(PyObject *self, PyObject *args)
1648 PyObject *decimal;
1677 static PyObject *
1678 test_empty_argparse(PyObject *self)
1681 PyObject *tuple, *dict = NULL;
1703 static PyObject *
1704 codec_incrementalencoder(PyObject *self, PyObject *args)
1713 static PyObject *
1714 codec_incrementaldecoder(PyObject *self, PyObject *args)
1726 static PyObject *
1727 test_long_numbits(PyObject *self)
1751 PyObject *plong = PyLong_FromLong(testcases[i].input);
1769 static PyObject *
1770 test_null_strings(PyObject *self)
1772 PyObject *o1 = PyObject_Str(NULL);
1774 PyObject *o2 = PyObject_Unicode(NULL);
1776 PyObject *o2 = PyObject_Str(NULL);
1778 PyObject *tuple = PyTuple_Pack(2, o1, o2);
1784 static PyObject *
1785 raise_exception(PyObject *self, PyObject *args)
1787 PyObject *exc;
1788 PyObject *exc_args, *v;
1815 static PyObject *
1816 set_errno(PyObject *self, PyObject *args)
1830 static PyObject *
1831 test_datetime_capi(PyObject *self, PyObject *args) {
1857 * thread finishes, because the thread uses a PyObject (the callable) that
1867 PyObject *rc;
1870 rc = PyObject_CallFunction((PyObject *)callable, "");
1887 static PyObject *
1888 test_thread_state(PyObject *self, PyObject *args)
1890 PyObject *fn;
1942 PyObject *callable = (PyObject *)arg;
1943 PyObject *r = PyObject_CallObject(callable, NULL);
1952 PyObject *pending_threadfunc(PyObject *self, PyObject *arg)
1954 PyObject *callable;
1977 static PyObject *
1978 test_string_from_format(PyObject *self, PyObject *args)
1980 PyObject *result;
2028 capsule_destructor(PyObject *o) {
2047 static PyObject *
2048 test_capsule(PyObject *self, PyObject *args)
2050 PyObject *object;
2123 PyObject *module = PyImport_ImportModule(known->module);
2170 static PyObject *
2171 test_with_docstring(PyObject *self)
2177 static PyObject *
2178 traceback_print(PyObject *self, PyObject *args)
2180 PyObject *file;
2181 PyObject *traceback;
2195 static PyObject *
2196 code_newempty(PyObject *self, PyObject *args)
2206 return (PyObject *)PyCode_NewEmpty(filename, funcname, firstlineno);
2211 static PyObject *
2212 make_exception_with_doc(PyObject *self, PyObject *args, PyObject *kwargs)
2216 PyObject *base = NULL;
2217 PyObject *dict = NULL;
2229 static PyObject *
2230 sequence_delitem(PyObject *self, PyObject *args)
2232 PyObject *seq;
2246 PyObject *callback;
2254 PyObject *res;
2279 static PyObject *
2280 call_in_temporary_c_thread(PyObject *self, PyObject *callback)
2282 PyObject *res = NULL;
2333 static PyObject*
2334 pymarshal_write_long_to_file(PyObject* self, PyObject *args)
2359 static PyObject*
2360 pymarshal_write_object_to_file(PyObject* self, PyObject *args)
2362 PyObject *obj;
2385 static PyObject*
2386 pymarshal_read_short_from_file(PyObject* self, PyObject *args)
2411 static PyObject*
2412 pymarshal_read_long_from_file(PyObject* self, PyObject *args)
2436 static PyObject*
2437 pymarshal_read_last_object_from_file(PyObject* self, PyObject *args)
2439 PyObject *obj;
2460 static PyObject*
2461 pymarshal_read_object_from_file(PyObject* self, PyObject *args)
2463 PyObject *obj;
2599 #define AddSym(d, n, f, v) {PyObject *o = f(v); PyDict_SetItemString(d, n, o); Py_DECREF(o);}
2646 static PyObject *
2647 test_structmembers_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2701 return (PyObject *)ob;
2705 test_structmembers_free(PyObject *ob)
2755 PyObject *m;
2767 PyModule_AddObject(m, "_test_structmembersType", (PyObject *)&test_structmembersType);