Python/ceval.c
PyObject *
_PyEval_GetBuiltinId(_Py_Identifier *name)
{
    PyObject *attr = _PyDict_GetItemIdWithError(PyEval_GetBuiltins(), name);
    if (attr) {
        Py_INCREF(attr);
    }
    else if (!PyErr_Occurred()) {
        PyErr_SetObject(PyExc_AttributeError, _PyUnicode_FromId(name));
    }
    return attr;
}
/* Convenience function to get a builtin from its name */
Convenience function to get a builtin from its name
Convenience function to get a builtin from its name
PyObject *
_PyEval_GetBuiltinId(_Py_Identifier *name)
{
    PyObject *attr = _PyDict_GetItemIdWithError(PyEval_GetBuiltins(), name);
    if (attr) {
        Py_INCREF(attr);
    }
    else if (!PyErr_Occurred()) {
        PyErr_SetObject(PyExc_AttributeError, _PyUnicode_FromId(name));
    }
    return attr;
}
PyObject * _PyEval_GetBuiltinId ( _Py_Identifier * name ) { PyObject * attr = _PyDict_GetItemIdWithError ( PyEval_GetBuiltins ( ) , name ) ; if ( attr ) { Py_INCREF ( attr ) ; } else if ( ! PyErr_Occurred ( ) ) { PyErr_SetObject ( PyExc_AttributeError , _PyUnicode_FromId ( name ) ) ; } return attr ; }
Convenience function to get a builtin from its name
Convenience function to get a builtin from its name