# error "this header requires Py_BUILD_CORE define"
#endif
-#include "pycore_identifier.h" // _Py_Identifier
#include "pycore_pystate.h" // _PyThreadState_GET()
/* Suggested size (number of positional arguments) for arrays of PyObject*
#endif
#include "pycore_freelist.h" // _PyFreeListState
-#include "pycore_identifier.h" // _Py_Identifier
#include "pycore_object.h" // PyManagedDictPointer
#include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_LOAD_SSIZE_ACQUIRE
+++ /dev/null
-/* String Literals: _Py_Identifier API */
-
-#ifndef Py_INTERNAL_IDENTIFIER_H
-#define Py_INTERNAL_IDENTIFIER_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef Py_BUILD_CORE
-# error "this header requires Py_BUILD_CORE define"
-#endif
-
-extern PyObject* _PyType_LookupId(PyTypeObject *, _Py_Identifier *);
-extern PyObject* _PyObject_LookupSpecialId(PyObject *, _Py_Identifier *);
-extern int _PyObject_SetAttrId(PyObject *, _Py_Identifier *, PyObject *);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // !Py_INTERNAL_IDENTIFIER_H
#include "pycore_lock.h" // PyMutex
#include "pycore_fileutils.h" // _Py_error_handler
-#include "pycore_identifier.h" // _Py_Identifier
#include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI
#include "pycore_global_objects.h" // _Py_SINGLETON
$(srcdir)/Include/internal/pycore_global_strings.h \
$(srcdir)/Include/internal/pycore_hamt.h \
$(srcdir)/Include/internal/pycore_hashtable.h \
- $(srcdir)/Include/internal/pycore_identifier.h \
$(srcdir)/Include/internal/pycore_import.h \
$(srcdir)/Include/internal/pycore_importdl.h \
$(srcdir)/Include/internal/pycore_initconfig.h \
return result;
}
-int
-_PyObject_SetAttrId(PyObject *v, _Py_Identifier *name, PyObject *w)
-{
- int result;
- PyObject *oname = _PyUnicode_FromId(name); /* borrowed */
- if (!oname)
- return -1;
- result = PyObject_SetAttr(v, oname, w);
- return result;
-}
-
int
_PyObject_SetAttributeErrorContext(PyObject* v, PyObject* name)
{
return res;
}
-PyObject *
-_PyObject_LookupSpecialId(PyObject *self, _Py_Identifier *attrid)
-{
- PyObject *attr = _PyUnicode_FromId(attrid); /* borrowed */
- if (attr == NULL)
- return NULL;
- return _PyObject_LookupSpecial(self, attr);
-}
-
static PyObject *
lookup_maybe_method(PyObject *self, PyObject *attr, int *unbound)
{
return res;
}
-PyObject *
-_PyType_LookupId(PyTypeObject *type, _Py_Identifier *name)
-{
- PyObject *oname;
- oname = _PyUnicode_FromId(name); /* borrowed */
- if (oname == NULL)
- return NULL;
- return _PyType_Lookup(type, oname);
-}
-
static void
set_flags(PyTypeObject *self, unsigned long mask, unsigned long flags)
{