summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-08-04 15:41:14 (GMT)
committerGitHub <noreply@github.com>2021-08-04 15:41:14 (GMT)
commitcee67fa66129b5d1db5c8aa3884338f82f0da3de (patch)
tree079f04f5ba63c5cbd2133c7ada636d28e117ff18 /Include/internal
parentc83919bd635f4433f1c6ae8504996a9fe3c215e5 (diff)
downloadcpython-cee67fa66129b5d1db5c8aa3884338f82f0da3de.zip
cpython-cee67fa66129b5d1db5c8aa3884338f82f0da3de.tar.gz
cpython-cee67fa66129b5d1db5c8aa3884338f82f0da3de.tar.bz2
bpo-44821: Eagerly assign __dict__ for new objects. (GH-27589)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index 4091f51..744b41a 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -180,6 +180,8 @@ extern int _Py_CheckSlotResult(
extern PyObject* _PyType_AllocNoTrack(PyTypeObject *type, Py_ssize_t nitems);
+extern int _PyObject_InitializeDict(PyObject *obj);
+
#ifdef __cplusplus
}
#endif