summaryrefslogtreecommitdiffstats
path: root/Objects/descrobject.c
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2022-06-17 15:13:17 (GMT)
committerGitHub <noreply@github.com>2022-06-17 15:13:17 (GMT)
commita51742ab82ad2a57841058fc9a16dac82d8337cf (patch)
tree7a1afc2f8255b25cf6da99e6af39d2eccf2acab6 /Objects/descrobject.c
parent0ff626f210c69643d0d5afad1e6ec6511272b3ce (diff)
downloadcpython-a51742ab82ad2a57841058fc9a16dac82d8337cf.zip
cpython-a51742ab82ad2a57841058fc9a16dac82d8337cf.tar.gz
cpython-a51742ab82ad2a57841058fc9a16dac82d8337cf.tar.bz2
gh-93911: Specialize `LOAD_ATTR_PROPERTY` (GH-93912)
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r--Objects/descrobject.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 05797e7..8ef6a82 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -6,6 +6,7 @@
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tuple.h" // _PyTuple_ITEMS()
#include "structmember.h" // PyMemberDef
+#include "pycore_descrobject.h"
/*[clinic input]
class mappingproxy "mappingproxyobject *" "&PyDictProxy_Type"
@@ -1501,16 +1502,6 @@ class property(object):
*/
-typedef struct {
- PyObject_HEAD
- PyObject *prop_get;
- PyObject *prop_set;
- PyObject *prop_del;
- PyObject *prop_doc;
- PyObject *prop_name;
- int getter_doc;
-} propertyobject;
-
static PyObject * property_copy(PyObject *, PyObject *, PyObject *,
PyObject *);