Lines Matching defs:object

50 static PyObject *TestError;     /* set to exception object in init */
352 sizeof(PyObject), /* Basic object size */
393 PyErr_SetString(PyExc_ValueError, "Argument must be a bytes object");
423 "test_lazy_hash_inheritance: failed to create object");
440 "test_lazy_hash_inheritance: could not hash object");
3063 PyErr_Format(PyExc_TypeError, "'%s' object is not callable",
3105 /* we assume the argument is callable object to which we own a reference */
3282 PyObject *object;
3306 object = PyCapsule_New(capsule_pointer, capsule_name, capsule_destructor);
3307 PyCapsule_SetContext(object, capsule_context);
3308 capsule_destructor(object);
3310 Py_DECREF(object);
3313 object = PyCapsule_New(known, "ignored", NULL);
3314 PyCapsule_SetPointer(object, capsule_pointer);
3315 PyCapsule_SetName(object, capsule_name);
3316 PyCapsule_SetDestructor(object, capsule_destructor);
3317 PyCapsule_SetContext(object, capsule_context);
3318 capsule_destructor(object);
3321 pointer2 = PyCapsule_GetPointer(object, "the wrong name");
3335 PyCapsule_SetDestructor(object, NULL);
3336 Py_DECREF(object);
3362 object = PyObject_GetAttrString(module, known->attribute);
3363 if (!object) {
3367 pointer2 = PyCapsule_GetPointer(object,
3370 Py_DECREF(object);
3377 Py_DECREF(object);
3386 Py_DECREF(object);
3889 /* Temporarily resurrect the object. */
5036 return raiseTestError(test_name, "object is not seen as freed");
5059 /* object fields like ob_type are uninitialized! */
5094 /* object memory is freed! */
5713 // Ensure that following tests don't modify the object,
6051 PyErr_SetString(PyExc_TypeError, "argument must be a code object");
6104 "code must be a Python code object");