Lines Matching defs:self

79 test_config(PyObject *self, PyObject *Py_UNUSED(ignored))
98 test_sizeof_c_types(PyObject *self, PyObject *Py_UNUSED(ignored))
158 test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored))
220 test_list_api(PyObject *self, PyObject *Py_UNUSED(ignored))
312 test_dict_iteration(PyObject* self, PyObject *Py_UNUSED(ignored))
326 dict_getitem_knownhash(PyObject *self, PyObject *args)
391 pycompilestring(PyObject* self, PyObject *obj) {
404 test_lazy_hash_inheritance(PyObject* self, PyObject *Py_UNUSED(ignored))
500 test_long_api(PyObject* self, PyObject *Py_UNUSED(ignored))
528 test_longlong_api(PyObject* self, PyObject *args)
546 test_long_and_overflow(PyObject *self, PyObject *Py_UNUSED(ignored))
710 test_long_long_and_overflow(PyObject *self, PyObject *Py_UNUSED(ignored))
874 test_long_as_size_t(PyObject *self, PyObject *Py_UNUSED(ignored))
906 test_long_as_unsigned_long_long_mask(PyObject *self,
930 test_long_as_double(PyObject *self, PyObject *Py_UNUSED(ignored))
955 test_L_code(PyObject *self, PyObject *Py_UNUSED(ignored))
1052 test_buildvalue_N(PyObject *self, PyObject *Py_UNUSED(ignored))
1092 test_get_statictype_slots(PyObject *self, PyObject *Py_UNUSED(ignored))
1148 test_get_type_name(PyObject *self, PyObject *Py_UNUSED(ignored))
1186 simple_str(PyObject *self) {
1192 test_type_from_ephemeral_spec(PyObject *self, PyObject *Py_UNUSED(ignored))
1306 test_get_type_qualname(PyObject *self, PyObject *Py_UNUSED(ignored))
1346 get_args(PyObject *self, PyObject *args)
1356 get_kwargs(PyObject *self, PyObject *args, PyObject *kwargs)
1367 getargs_tuple(PyObject *self, PyObject *args)
1377 getargs_keywords(PyObject *self, PyObject *args, PyObject *kwargs)
1394 getargs_keyword_only(PyObject *self, PyObject *args, PyObject *kwargs)
1409 getargs_positional_only_and_keywords(PyObject *self, PyObject *args, PyObject *kwargs)
1426 getargs_b(PyObject *self, PyObject *args)
1435 getargs_B(PyObject *self, PyObject *args)
1444 getargs_h(PyObject *self, PyObject *args)
1453 getargs_H(PyObject *self, PyObject *args)
1462 getargs_I(PyObject *self, PyObject *args)
1471 getargs_k(PyObject *self, PyObject *args)
1480 getargs_i(PyObject *self, PyObject *args)
1489 getargs_l(PyObject *self, PyObject *args)
1498 getargs_n(PyObject *self, PyObject *args)
1507 getargs_p(PyObject *self, PyObject *args)
1516 getargs_L(PyObject *self, PyObject *args)
1525 getargs_K(PyObject *self, PyObject *args)
1536 test_k_code(PyObject *self, PyObject *Py_UNUSED(ignored))
1591 getargs_f(PyObject *self, PyObject *args)
1600 getargs_d(PyObject *self, PyObject *args)
1609 getargs_D(PyObject *self, PyObject *args)
1618 getargs_S(PyObject *self, PyObject *args)
1628 getargs_Y(PyObject *self, PyObject *args)
1638 getargs_U(PyObject *self, PyObject *args)
1648 getargs_c(PyObject *self, PyObject *args)
1657 getargs_C(PyObject *self, PyObject *args)
1666 getargs_s(PyObject *self, PyObject *args)
1675 getargs_s_star(PyObject *self, PyObject *args)
1687 getargs_s_hash(PyObject *self, PyObject *args)
1697 getargs_z(PyObject *self, PyObject *args)
1709 getargs_z_star(PyObject *self, PyObject *args)
1726 getargs_z_hash(PyObject *self, PyObject *args)
1739 getargs_y(PyObject *self, PyObject *args)
1748 getargs_y_star(PyObject *self, PyObject *args)
1760 getargs_y_hash(PyObject *self, PyObject *args)
1770 getargs_u(PyObject *self, PyObject *args)
1779 getargs_u_hash(PyObject *self, PyObject *args)
1789 getargs_Z(PyObject *self, PyObject *args)
1801 getargs_Z_hash(PyObject *self, PyObject *args)
1814 getargs_es(PyObject *self, PyObject *args)
1830 getargs_et(PyObject *self, PyObject *args)
1846 getargs_es_hash(PyObject *self, PyObject *args)
1869 getargs_et_hash(PyObject *self, PyObject *args)
1894 test_s_code(PyObject *self, PyObject *Py_UNUSED(ignored))
1927 parse_tuple_and_keywords(PyObject *self, PyObject *args)
2005 test_u_code(PyObject *self, PyObject *Py_UNUSED(ignored))
2048 test_Z_code(PyObject *self, PyObject *Py_UNUSED(ignored))
2105 test_widechar(PyObject *self, PyObject *Py_UNUSED(ignored))
2187 unicode_aswidechar(PyObject *self, PyObject *args)
2218 unicode_aswidecharstring(PyObject *self, PyObject *args)
2239 unicode_asucs4(PyObject *self, PyObject *args)
2269 unicode_asutf8(PyObject *self, PyObject *args)
2287 unicode_asutf8andsize(PyObject *self, PyObject *args)
2311 unicode_findchar(PyObject *self, PyObject *args)
2332 unicode_copycharacters(PyObject *self, PyObject *args)
2366 unicode_legacy_string(PyObject *self, PyObject *args)
2391 getargs_w_star(PyObject *self, PyObject *args)
2413 test_empty_argparse(PyObject *self, PyObject *Py_UNUSED(ignored))
2441 codec_incrementalencoder(PyObject *self, PyObject *args)
2451 codec_incrementaldecoder(PyObject *self, PyObject *args)
2463 test_long_numbits(PyObject *self, PyObject *Py_UNUSED(ignored))
2509 pyobject_repr_from_null(PyObject *self, PyObject *Py_UNUSED(ignored))
2515 pyobject_str_from_null(PyObject *self, PyObject *Py_UNUSED(ignored))
2521 pyobject_bytes_from_null(PyObject *self, PyObject *Py_UNUSED(ignored))
2527 exc_set_object(PyObject *self, PyObject *args)
2541 raise_exception(PyObject *self, PyObject *args)
2568 set_errno(PyObject *self, PyObject *args)
2580 test_set_exception(PyObject *self, PyObject *new_exc)
2590 test_set_exc_info(PyObject *self, PyObject *args)
2616 test_datetime_capi(PyObject *self, PyObject *args) {
2652 datetime_check_date(PyObject *self, PyObject *args) {
2657 datetime_check_time(PyObject *self, PyObject *args) {
2662 datetime_check_datetime(PyObject *self, PyObject *args) {
2667 datetime_check_delta(PyObject *self, PyObject *args) {
2672 datetime_check_tzinfo(PyObject *self, PyObject *args) {
2683 make_timezones_capi(PyObject *self, PyObject *args) {
2704 get_timezones_offset_zero(PyObject *self, PyObject *args) {
2727 get_timezone_utc_capi(PyObject* self, PyObject *args) {
2742 get_date_fromdate(PyObject *self, PyObject *args)
2765 get_datetime_fromdateandtime(PyObject *self, PyObject *args)
2795 get_datetime_fromdateandtimeandfold(PyObject *self, PyObject *args)
2828 get_time_fromtime(PyObject *self, PyObject *args)
2853 get_time_fromtimeandfold(PyObject *self, PyObject *args)
2880 get_delta_fromdsu(PyObject *self, PyObject *args)
2905 get_date_fromtimestamp(PyObject* self, PyObject *args)
2934 get_datetime_fromtimestamp(PyObject* self, PyObject *args)
2970 test_PyDateTime_GET(PyObject *self, PyObject *obj)
2982 test_PyDateTime_DATE_GET(PyObject *self, PyObject *obj)
2996 test_PyDateTime_TIME_GET(PyObject *self, PyObject *obj)
3010 test_PyDateTime_DELTA_GET(PyObject *self, PyObject *obj)
3054 test_thread_state(PyObject *self, PyObject *args)
3117 pending_threadfunc(PyObject *self, PyObject *arg)
3140 test_string_from_format(PyObject *self, PyObject *Py_UNUSED(ignored))
3180 test_unicode_compare_with_ascii(PyObject *self, PyObject *Py_UNUSED(ignored)) {
3197 test_with_docstring(PyObject *self, PyObject *Py_UNUSED(ignored))
3204 test_string_to_double(PyObject *self, PyObject *Py_UNUSED(ignored)) {
3280 test_capsule(PyObject *self, PyObject *Py_UNUSED(ignored))
3415 profile_int(PyObject *self, PyObject* args)
3526 traceback_print(PyObject *self, PyObject *args)
3544 exception_print(PyObject *self, PyObject *args)
3569 raise_memoryerror(PyObject *self, PyObject *Py_UNUSED(ignored))
3608 code_newempty(PyObject *self, PyObject *args)
3624 make_exception_with_doc(PyObject *self, PyObject *args, PyObject *kwargs)
3642 make_memoryview_from_NULL_pointer(PyObject *self, PyObject *Py_UNUSED(ignored))
3651 test_from_contiguous(PyObject* self, PyObject *Py_UNUSED(ignored))
3704 test_pep3118_obsolete_write_locks(PyObject* self, PyObject *Py_UNUSED(ignored))
3744 getbuffer_with_null_view(PyObject* self, PyObject *obj)
3754 test_PyBuffer_SizeFromFormat(PyObject *self, PyObject *args)
3775 crash_no_current_thread(PyObject *self, PyObject *Py_UNUSED(ignored))
3789 run_in_subinterp(PyObject *self, PyObject *args)
3836 test_pytime_object_to_time_t(PyObject *self, PyObject *args)
3851 test_pytime_object_to_timeval(PyObject *self, PyObject *args)
3867 test_pytime_object_to_timespec(PyObject *self, PyObject *args)
3883 slot_tp_del(PyObject *self)
3890 assert(Py_REFCNT(self) == 0);
3891 Py_SET_REFCNT(self, 1);
3897 del = _PyObject_LookupSpecialId(self, &PyId___tp_del__);
3913 assert(Py_REFCNT(self) > 0);
3914 Py_SET_REFCNT(self, Py_REFCNT(self) - 1);
3915 if (Py_REFCNT(self) == 0) {
3924 Py_ssize_t refcnt = Py_REFCNT(self);
3925 _Py_NewReference(self);
3926 Py_SET_REFCNT(self, refcnt);
3928 assert(!PyType_IS_GC(Py_TYPE(self)) || PyObject_GC_IsTracked(self));
3937 with_tp_del(PyObject *self, PyObject *args)
3956 without_gc(PyObject *Py_UNUSED(self), PyObject *obj)
3977 create_cfunction(PyObject *self, PyObject *args)
3979 return PyCFunction_NewEx(&ml, self, NULL);
4033 test_structseq_newtype_doesnt_leak(PyObject *Py_UNUSED(self),
4058 test_structseq_newtype_null_descr_doc(PyObject *Py_UNUSED(self),
4087 test_pymem_alloc0(PyObject *self, PyObject *Py_UNUSED(ignored))
4313 test_pymem_setrawallocators(PyObject *self, PyObject *Py_UNUSED(ignored))
4319 test_pymem_setallocators(PyObject *self, PyObject *Py_UNUSED(ignored))
4325 test_pyobject_setallocators(PyObject *self, PyObject *Py_UNUSED(ignored))
4433 set_nomemory(PyObject *self, PyObject *args)
4448 remove_mem_hooks(PyObject *self, PyObject *Py_UNUSED(ignored))
4547 call_in_temporary_c_thread(PyObject *self, PyObject *args)
4607 join_temporary_c_thread(PyObject *self, PyObject *Py_UNUSED(ignored))
4624 pymarshal_write_long_to_file(PyObject* self, PyObject *args)
4649 pymarshal_write_object_to_file(PyObject* self, PyObject *args)
4674 pymarshal_read_short_from_file(PyObject* self, PyObject *args)
4700 pymarshal_read_long_from_file(PyObject* self, PyObject *args)
4725 pymarshal_read_last_object_from_file(PyObject* self, PyObject *args)
4748 pymarshal_read_object_from_file(PyObject* self, PyObject *args)
4771 return_null_without_error(PyObject *self, PyObject *args)
4780 return_result_with_error(PyObject *self, PyObject *args)
4789 getitem_with_error(PyObject *self, PyObject *args)
4801 test_pytime_fromseconds(PyObject *self, PyObject *args)
4812 test_pytime_fromsecondsobject(PyObject *self, PyObject *args)
4830 test_pytime_assecondsdouble(PyObject *self, PyObject *args)
4845 test_PyTime_AsTimeval(PyObject *self, PyObject *args)
4872 test_PyTime_AsTimeval_clamp(PyObject *self, PyObject *args)
4898 test_PyTime_AsTimespec(PyObject *self, PyObject *args)
4916 test_PyTime_AsTimespec_clamp(PyObject *self, PyObject *args)
4933 test_PyTime_AsMilliseconds(PyObject *self, PyObject *args)
4953 test_PyTime_AsMicroseconds(PyObject *self, PyObject *args)
4973 pymem_buffer_overflow(PyObject *self, PyObject *args)
4991 pymem_api_misuse(PyObject *self, PyObject *args)
5004 pymem_malloc_without_gil(PyObject *self, PyObject *args)
5021 test_pymem_getallocatorsname(PyObject *self, PyObject *args)
5043 check_pyobject_null_is_freed(PyObject *self, PyObject *Py_UNUSED(args))
5051 check_pyobject_uninitialized_is_freed(PyObject *self, PyObject *Py_UNUSED(args))
5065 check_pyobject_forbidden_bytes_is_freed(PyObject *self, PyObject *Py_UNUSED(args))
5081 check_pyobject_freed_is_freed(PyObject *self, PyObject *Py_UNUSED(args))
5101 pyobject_malloc_without_gil(PyObject *self, PyObject *args)
5117 tracemalloc_track(PyObject *self, PyObject *args)
5150 tracemalloc_untrack(PyObject *self, PyObject *args)
5173 tracemalloc_get_traceback(PyObject *self, PyObject *args)
5189 dict_get_version(PyObject *self, PyObject *args)
5206 raise_SIGINT_then_send_None(PyObject *self, PyObject *args)
5249 test_pyobject_fastcall(PyObject *self, PyObject *args)
5267 test_pyobject_fastcalldict(PyObject *self, PyObject *args)
5294 test_pyobject_vectorcall(PyObject *self, PyObject *args)
5328 test_pyvectorcall_call(PyObject *self, PyObject *args)
5352 stack_pointer(PyObject *self, PyObject *args)
5361 py_w_stopcode(PyObject *self, PyObject *args)
5374 get_mapping_keys(PyObject* self, PyObject *obj)
5380 get_mapping_values(PyObject* self, PyObject *obj)
5386 get_mapping_items(PyObject* self, PyObject *obj)
5392 test_mapping_has_key_string(PyObject *self, PyObject *Py_UNUSED(args))
5416 mapping_has_key(PyObject* self, PyObject *args)
5426 sequence_set_slice(PyObject* self, PyObject *args)
5442 sequence_del_slice(PyObject* self, PyObject *args)
5458 test_pythread_tss_key_state(PyObject *self, PyObject *args)
5513 new_hamt(PyObject *self, PyObject *args)
5519 /* def bad_get(self, obj, cls):
5521 return repr(self)
5526 PyObject *self, *obj, *cls;
5527 if (!_PyArg_UnpackStack(args, nargs, "bad_get", 3, 3, &self, &obj, &cls)) {
5537 return PyObject_Repr(self);
5543 negative_refcount(PyObject *self, PyObject *Py_UNUSED(args))
5561 test_write_unraisable_exc(PyObject *self, PyObject *args)
5586 sequence_getitem(PyObject *self, PyObject *args)
5598 sequence_setitem(PyObject *self, PyObject *args)
5631 meth_varargs(PyObject* self, PyObject* args)
5633 return Py_BuildValue("NO", _null_to_none(self), args);
5637 meth_varargs_keywords(PyObject* self, PyObject* args, PyObject* kwargs)
5639 return Py_BuildValue("NON", _null_to_none(self), args, _null_to_none(kwargs));
5643 meth_o(PyObject* self, PyObject* obj)
5645 return Py_BuildValue("NO", _null_to_none(self), obj);
5649 meth_noargs(PyObject* self, PyObject* ignored)
5651 return _null_to_none(self);
5669 meth_fastcall(PyObject* self, PyObject* const* args, Py_ssize_t nargs)
5672 "NN", _null_to_none(self), _fastcall_to_tuple(args, nargs)
5677 meth_fastcall_keywords(PyObject* self, PyObject* const* args,
5688 return Py_BuildValue("NNN", _null_to_none(self), pyargs, pykwargs);
5706 test_set_type_size(PyObject *self, PyObject *Py_UNUSED(ignored))
5756 test_refcount_macros(PyObject *self, PyObject *Py_UNUSED(ignored))
5766 test_refcount_funcs(PyObject *self, PyObject *Py_UNUSED(ignored))
5807 test_py_is_macros(PyObject *self, PyObject *Py_UNUSED(ignored))
5816 test_py_is_funcs(PyObject *self, PyObject *Py_UNUSED(ignored))
5823 test_fatal_error(PyObject *self, PyObject *args)
5843 type_get_version(PyObject *self, PyObject *type)
5861 test_tstate_capi(PyObject *self, PyObject *Py_UNUSED(args))
5912 test_float_pack(PyObject *self, PyObject *args)
5956 test_float_unpack(PyObject *self, PyObject *args)
5989 frame_getlocals(PyObject *self, PyObject *frame)
5999 frame_getglobals(PyObject *self, PyObject *frame)
6009 frame_getgenerator(PyObject *self, PyObject *frame)
6019 frame_getbuiltins(PyObject *self, PyObject *frame)
6029 frame_getlasti(PyObject *self, PyObject *frame)
6044 frame_new(PyObject *self, PyObject *args)
6060 eval_get_func_name(PyObject *self, PyObject *func)
6066 eval_get_func_desc(PyObject *self, PyObject *func)
6210 get_feature_macros(PyObject *self, PyObject *Py_UNUSED(args))
6222 test_code_api(PyObject *self, PyObject *Py_UNUSED(args))
6337 settrace_to_record(PyObject *self, PyObject *list)
6365 settrace_to_error(PyObject *self, PyObject *list)
6378 function_get_code(PyObject *self, PyObject *func)
6390 function_get_globals(PyObject *self, PyObject *func)
6402 function_get_module(PyObject *self, PyObject *func)
6879 matmulType_matmul(PyObject *self, PyObject *other)
6881 return Py_BuildValue("(sOO)", "matmul", self, other);
6885 matmulType_imatmul(PyObject *self, PyObject *other)
6887 return Py_BuildValue("(sOO)", "imatmul", self, other);
6891 matmulType_dealloc(PyObject *self)
6893 Py_TYPE(self)->tp_free(self);
6982 ipowType_ipow(PyObject *self, PyObject *other, PyObject *mod)
7136 recurse_infinitely_error_init(PyObject *self, PyObject *args, PyObject *kwds)
7225 generic_alias_dealloc(PyGenericAliasObject *self)
7227 Py_CLEAR(self->item);
7228 Py_TYPE(self)->tp_free((PyObject *)self);
7232 generic_alias_mro_entries(PyGenericAliasObject *self, PyObject *bases)
7234 return PyTuple_Pack(1, self->item);
7332 call_return_args(PyObject *self, PyObject *args, PyObject *kwargs)
7459 heapctype_init(PyObject *self, PyObject *args, PyObject *kwargs)
7461 ((HeapCTypeObject *)self)->value = 10;
7466 heapgcctype_traverse(HeapCTypeObject *self, visitproc visit, void *arg)
7468 Py_VISIT(Py_TYPE(self));
7473 heapgcctype_dealloc(HeapCTypeObject *self)
7475 PyTypeObject *tp = Py_TYPE(self);
7476 PyObject_GC_UnTrack(self);
7477 PyObject_GC_Del(self);
7503 heapctype_dealloc(HeapCTypeObject *self)
7505 PyTypeObject *tp = Py_TYPE(self);
7506 PyObject_Free(self);
7536 heapctypesubclass_init(PyObject *self, PyObject *args, PyObject *kwargs)
7539 if (heapctype_init(self, args, kwargs) < 0) {
7543 ((HeapCTypeSubclassObject *)self)->value2 = 20;
7577 heapctypewithbuffer_getbuffer(HeapCTypeWithBufferObject *self, Py_buffer *view, int flags)
7579 self->buffer[0] = '1';
7580 self->buffer[1] = '2';
7581 self->buffer[2] = '3';
7582 self->buffer[3] = '4';
7584 view, (PyObject*)self, (void *)self->buffer, 4, 1, flags);
7588 heapctypewithbuffer_releasebuffer(HeapCTypeWithBufferObject *self, Py_buffer *view)
7590 assert(view->obj == (void*) self);
7614 heapctypesubclasswithfinalizer_init(PyObject *self, PyObject *args, PyObject *kwargs)
7616 PyTypeObject *base = (PyTypeObject *)PyType_GetSlot(Py_TYPE(self), Py_tp_base);
7618 base_init(self, args, kwargs);
7623 heapctypesubclasswithfinalizer_finalize(PyObject *self)
7641 if (PyObject_SetAttrString(self, "__class__", newtype) < 0) {
7691 heapctypewithdict_dealloc(HeapCTypeWithDictObject* self)
7694 PyTypeObject *tp = Py_TYPE(self);
7695 Py_XDECREF(self->dict);
7696 PyObject_Free(self);
7768 heapctypewithweakref_dealloc(HeapCTypeWithWeakrefObject* self)
7771 PyTypeObject *tp = Py_TYPE(self);
7772 if (self->weakreflist != NULL)
7773 PyObject_ClearWeakRefs((PyObject *) self);
7774 Py_XDECREF(self->weakreflist);
7775 PyObject_Free(self);
7816 heapctypesetattr_init(PyObject *self, PyObject *args, PyObject *kwargs)
7818 ((HeapCTypeSetattrObject *)self)->value = 10;
7823 heapctypesetattr_dealloc(HeapCTypeSetattrObject *self)
7825 PyTypeObject *tp = Py_TYPE(self);
7826 PyObject_Free(self);
7831 heapctypesetattr_setattro(HeapCTypeSetattrObject *self, PyObject *attr, PyObject *value)
7841 return PyObject_GenericSetAttr((PyObject*) self, attr, value);
7844 self->value = 0;
7854 self->value = v;
7956 PyObject *self = type->tp_alloc(type, 0);
7957 if (self == NULL) {
7961 ((ContainerNoGCobject *)self)->value = value;
7962 return self;
7966 ContainerNoGC_dealloc(ContainerNoGCobject *self)
7968 Py_DECREF(self->value);
7969 Py_TYPE(self)->tp_free((PyObject *)self);
8239 negative_dictoffset(PyObject *self, PyObject *Py_UNUSED(ignored))
8250 test_buildvalue_issue38913(PyObject *self, PyObject *Py_UNUSED(ignored))
8294 getargs_s_hash_int(PyObject *self, PyObject *args, PyObject *kwargs)
8308 getargs_s_hash_int2(PyObject *self, PyObject *args, PyObject *kwargs)
8322 gh_99240_clear_args(PyObject *self, PyObject *args)