Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8398713c
Commit
8398713c
authored
Jun 11, 2018
by
Christian Tismer
Committed by
Ned Deily
Jun 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33738: Address review comments in GH #7477 (GH-7585)
parent
877b2320
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
Include/abstract.h
Include/abstract.h
+1
-1
Include/pyerrors.h
Include/pyerrors.h
+2
-2
Misc/NEWS.d/next/Core and Builtins/2018-06-07-18-34-19.bpo-33738.ODZS7a.rst
...ore and Builtins/2018-06-07-18-34-19.bpo-33738.ODZS7a.rst
+2
-1
Objects/abstract.c
Objects/abstract.c
+2
-0
Objects/exceptions.c
Objects/exceptions.c
+1
-0
No files found.
Include/abstract.h
View file @
8398713c
...
...
@@ -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,
...
...
Include/pyerrors.h
View file @
8398713c
...
...
@@ -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
(
c
har
*
)
PyExceptionClass_Name
(
PyObject
*
);
PyAPI_FUNC
(
c
onst
char
*
)
PyExceptionClass_Name
(
PyObject
*
);
#endif
#define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type))
...
...
Misc/NEWS.d/next/Core and Builtins/2018-06-07-18-34-19.bpo-33738.ODZS7a.rst
View file @
8398713c
Seven macro incompatibilities with the Limited API were fixed, and the
macros PyIter_Check, PyIndex_Check and PyExceptionClass_Name were added as
functions. A script for automatic macro checks was added.
functions. The return type of PyExceptionClass_Name is "const char \*".
A script for automatic macro checks was added.
Objects/abstract.c
View file @
8398713c
...
...
@@ -1245,6 +1245,7 @@ PyNumber_Absolute(PyObject *o)
}
#undef PyIndex_Check
int
PyIndex_Check
(
PyObject
*
obj
)
{
...
...
@@ -2544,6 +2545,7 @@ PyObject_GetIter(PyObject *o)
}
#undef PyIter_Check
int
PyIter_Check
(
PyObject
*
obj
)
{
return
obj
->
ob_type
->
tp_iternext
!=
NULL
&&
...
...
Objects/exceptions.c
View file @
8398713c
...
...
@@ -343,6 +343,7 @@ PyException_SetContext(PyObject *self, PyObject *context)
}
#undef PyExceptionClass_Name
char
*
PyExceptionClass_Name
(
PyObject
*
ob
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment