| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,7 +104,7 @@ done. This can be done using the :c:func:`PyErr_Fetch` and | |||
| 104 | 104 | /* This saves the current exception state */ | |
| 105 | 105 | PyErr_Fetch(&err_type, &err_value, &err_traceback); | |
| 106 | 106 | ||
| 107 | - cbresult = PyObject_CallObject(self->my_callback, NULL); | ||
| 107 | + cbresult = PyObject_CallNoArgs(self->my_callback); | ||
| 108 | 108 | if (cbresult == NULL) | |
| 109 | 109 | PyErr_WriteUnraisable(self->my_callback); | |
| 110 | 110 | else | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1976,7 +1976,7 @@ defdict_missing(defdictobject *dd, PyObject *key) | |||
| 1976 | 1976 | Py_DECREF(tup); | |
| 1977 | 1977 | return NULL; | |
| 1978 | 1978 | } | |
| 1979 | - value = PyEval_CallObject(factory, NULL); | ||
| 1979 | + value = _PyObject_CallNoArg(factory); | ||
| 1980 | 1980 | if (value == NULL) | |
| 1981 | 1981 | return value; | |
| 1982 | 1982 | if (PyObject_SetItem((PyObject *)dd, key, value) < 0) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1001,8 +1001,8 @@ PyCPointerType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 1001 | 1001 | stgdict items size, align, length contain info about pointers itself, | |
| 1002 | 1002 | stgdict->proto has info about the pointed to type! | |
| 1003 | 1003 | */ | |
| 1004 | - stgdict = (StgDictObject *)PyObject_CallObject( | ||
| 1005 | - (PyObject *)&PyCStgDict_Type, NULL); | ||
| 1004 | + stgdict = (StgDictObject *)_PyObject_CallNoArg( | ||
| 1005 | + (PyObject *)&PyCStgDict_Type); | ||
| 1006 | 1006 | if (!stgdict) | |
| 1007 | 1007 | return NULL; | |
| 1008 | 1008 | stgdict->size = sizeof(void *); | |
@@ -1489,8 +1489,8 @@ PyCArrayType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 1489 | 1489 | goto error; | |
| 1490 | 1490 | } | |
| 1491 | 1491 | ||
| 1492 | - stgdict = (StgDictObject *)PyObject_CallObject( | ||
| 1493 | - (PyObject *)&PyCStgDict_Type, NULL); | ||
| 1492 | + stgdict = (StgDictObject *)_PyObject_CallNoArg( | ||
| 1493 | + (PyObject *)&PyCStgDict_Type); | ||
| 1494 | 1494 | if (!stgdict) | |
| 1495 | 1495 | goto error; | |
| 1496 | 1496 | ||
@@ -1946,8 +1946,8 @@ static PyObject *CreateSwappedType(PyTypeObject *type, PyObject *args, PyObject | |||
| 1946 | 1946 | if (result == NULL) | |
| 1947 | 1947 | return NULL; | |
| 1948 | 1948 | ||
| 1949 | - stgdict = (StgDictObject *)PyObject_CallObject( | ||
| 1950 | - (PyObject *)&PyCStgDict_Type, NULL); | ||
| 1949 | + stgdict = (StgDictObject *)_PyObject_CallNoArg( | ||
| 1950 | + (PyObject *)&PyCStgDict_Type); | ||
| 1951 | 1951 | if (!stgdict) { | |
| 1952 | 1952 | Py_DECREF(result); | |
| 1953 | 1953 | return NULL; | |
@@ -2060,8 +2060,8 @@ PyCSimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 2060 | 2060 | goto error; | |
| 2061 | 2061 | } | |
| 2062 | 2062 | ||
| 2063 | - stgdict = (StgDictObject *)PyObject_CallObject( | ||
| 2064 | - (PyObject *)&PyCStgDict_Type, NULL); | ||
| 2063 | + stgdict = (StgDictObject *)_PyObject_CallNoArg( | ||
| 2064 | + (PyObject *)&PyCStgDict_Type); | ||
| 2065 | 2065 | if (!stgdict) | |
| 2066 | 2066 | goto error; | |
| 2067 | 2067 | ||
@@ -2454,8 +2454,8 @@ PyCFuncPtrType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) | |||
| 2454 | 2454 | PyTypeObject *result; | |
| 2455 | 2455 | StgDictObject *stgdict; | |
| 2456 | 2456 | ||
| 2457 | - stgdict = (StgDictObject *)PyObject_CallObject( | ||
| 2458 | - (PyObject *)&PyCStgDict_Type, NULL); | ||
| 2457 | + stgdict = (StgDictObject *)_PyObject_CallNoArg( | ||
| 2458 | + (PyObject *)&PyCStgDict_Type); | ||
| 2459 | 2459 | if (!stgdict) | |
| 2460 | 2460 | return NULL; | |
| 2461 | 2461 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,7 @@ PyCField_FromDesc(PyObject *desc, Py_ssize_t index, | |||
| 60 | 60 | #define CONT_BITFIELD 2 | |
| 61 | 61 | #define EXPAND_BITFIELD 3 | |
| 62 | 62 | ||
| 63 | - self = (CFieldObject *)PyObject_CallObject((PyObject *)&PyCField_Type, | ||
| 64 | - NULL); | ||
| 63 | + self = (CFieldObject *)_PyObject_CallNoArg((PyObject *)&PyCField_Type); | ||
| 65 | 64 | if (self == NULL) | |
| 66 | 65 | return NULL; | |
| 67 | 66 | dict = PyType_stgdict(desc); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4907,7 +4907,7 @@ bad_get(PyObject *module, PyObject *const *args, Py_ssize_t nargs) | |||
| 4907 | 4907 | return NULL; | |
| 4908 | 4908 | } | |
| 4909 | 4909 | ||
| 4910 | - PyObject *res = PyObject_CallObject(cls, NULL); | ||
| 4910 | + PyObject *res = _PyObject_CallNoArg(cls); | ||
| 4911 | 4911 | if (res == NULL) { | |
| 4912 | 4912 | return NULL; | |
| 4913 | 4913 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -433,7 +433,7 @@ run_at_forkers(PyObject *lst, int reverse) | |||
| 433 | 433 | for (i = 0; i < PyList_GET_SIZE(cpy); i++) { | |
| 434 | 434 | PyObject *func, *res; | |
| 435 | 435 | func = PyList_GET_ITEM(cpy, i); | |
| 436 | - res = PyObject_CallObject(func, NULL); | ||
| 436 | + res = _PyObject_CallNoArg(func); | ||
| 437 | 437 | if (res == NULL) | |
| 438 | 438 | PyErr_WriteUnraisable(func); | |
| 439 | 439 | else | |
| Back | FazBrowse Home | New Git URL |
0 commit comments