diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-04 22:04:20 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-04 22:04:20 (GMT) |
commit | a701388de1135241b5a8e4c970e06c0e83a66dc0 (patch) | |
tree | 5faf9071aa6fd65c55424f1e5851bce8634a1bb7 /Include | |
parent | d4dc6dc9e7e1fc1708c243b308a27e2faf59a3ea (diff) | |
download | cpython-a701388de1135241b5a8e4c970e06c0e83a66dc0.zip cpython-a701388de1135241b5a8e4c970e06c0e83a66dc0.tar.gz cpython-a701388de1135241b5a8e4c970e06c0e83a66dc0.tar.bz2 |
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/iterobject.h | 2 | ||||
-rw-r--r-- | Include/object.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Include/iterobject.h b/Include/iterobject.h index 86abb25..f61726f 100644 --- a/Include/iterobject.h +++ b/Include/iterobject.h @@ -18,8 +18,6 @@ PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *); PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *); -PyAPI_FUNC(PyObject *) _PyIter_GetBuiltin(const char *iter); - #ifdef __cplusplus } #endif diff --git a/Include/object.h b/Include/object.h index 9b3055d..4024306 100644 --- a/Include/object.h +++ b/Include/object.h @@ -535,6 +535,11 @@ PyAPI_FUNC(int) _PyObject_GenericSetAttrWithDict(PyObject *, PyObject *, PyObject *, PyObject *); +/* Helper to look up a builtin object */ +#ifndef Py_LIMITED_API +PyAPI_FUNC(PyObject *) +_PyObject_GetBuiltin(const char *name); +#endif /* PyObject_Dir(obj) acts like Python builtins.dir(obj), returning a list of strings. PyObject_Dir(NULL) is like builtins.dir(), |