mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-33738: Address review comments in GH #7477 (GH-7585)
This commit is contained in:
parent
877b23202b
commit
8398713cea
5 changed files with 8 additions and 4 deletions
|
|
@ -598,7 +598,7 @@ PyAPI_FUNC(PyObject *) PyObject_GetIter(PyObject *);
|
|||
((obj)->ob_type->tp_iternext != NULL && \
|
||||
(obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented)
|
||||
#else
|
||||
PyAPI_FUNC(int) PyIter_Check(PyObject*);
|
||||
PyAPI_FUNC(int) PyIter_Check(PyObject *);
|
||||
#endif
|
||||
|
||||
/* Takes an iterator object and calls its tp_iternext slot,
|
||||
|
|
|
|||
|
|
@ -142,9 +142,9 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
|
|||
|
||||
#ifndef Py_LIMITED_API
|
||||
#define PyExceptionClass_Name(x) \
|
||||
((char *)(((PyTypeObject*)(x))->tp_name))
|
||||
((char *)(((PyTypeObject *)(x))->tp_name))
|
||||
#else
|
||||
PyAPI_FUNC(char *) PyExceptionClass_Name(PyObject*);
|
||||
PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *);
|
||||
#endif
|
||||
|
||||
#define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue