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/object.h | |
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/object.h')
-rw-r--r-- | Include/object.h | 5 |
1 files changed, 5 insertions, 0 deletions
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(), |