From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/python~3.12/c-api%2Fdescriptor.html | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 devdocs/python~3.12/c-api%2Fdescriptor.html (limited to 'devdocs/python~3.12/c-api%2Fdescriptor.html') diff --git a/devdocs/python~3.12/c-api%2Fdescriptor.html b/devdocs/python~3.12/c-api%2Fdescriptor.html new file mode 100644 index 00000000..a6089a82 --- /dev/null +++ b/devdocs/python~3.12/c-api%2Fdescriptor.html @@ -0,0 +1,34 @@ +

Descriptor Objects

“Descriptors” are objects that describe some attribute of an object. They are found in the dictionary of type objects.

+PyTypeObject PyProperty_Type
+ Part of the Stable ABI.

The type object for the built-in descriptor types.

+
+PyObject *PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
+Return value: New reference. Part of the Stable ABI. +
+
+PyObject *PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
+Return value: New reference. Part of the Stable ABI. +
+
+PyObject *PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
+Return value: New reference. Part of the Stable ABI. +
+
+PyObject *PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)
Return value: New reference.
+
+PyObject *PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
+Return value: New reference. Part of the Stable ABI. +
+
+int PyDescr_IsData(PyObject *descr)
+

Return non-zero if the descriptor objects descr describes a data attribute, or 0 if it describes a method. descr must be a descriptor object; there is no error checking.

+
+PyObject *PyWrapper_New(PyObject*, PyObject*)
+Return value: New reference. Part of the Stable ABI. +
+
+

+ © 2001–2023 Python Software Foundation
Licensed under the PSF License.
+ https://docs.python.org/3.12/c-api/descriptor.html +

+
-- cgit v1.2.3