diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/python~3.12/c-api%2Fdescriptor.html | |
new repository
Diffstat (limited to 'devdocs/python~3.12/c-api%2Fdescriptor.html')
| -rw-r--r-- | devdocs/python~3.12/c-api%2Fdescriptor.html | 34 |
1 files changed, 34 insertions, 0 deletions
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 @@ + <span id="id1"></span><h1>Descriptor Objects</h1> <p>“Descriptors” are objects that describe some attribute of an object. They are found in the dictionary of type objects.</p> <dl class="c var"> <dt class="sig sig-object c" id="c.PyProperty_Type"> +<code>PyTypeObject PyProperty_Type</code> </dt> <dd> +<em class="stableabi"> Part of the <a class="reference internal" href="stable#stable"><span class="std std-ref">Stable ABI</span></a>.</em><p>The type object for the built-in descriptor types.</p> </dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyDescr_NewGetSet"> +<code>PyObject *PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)</code> </dt> <dd> +<em class="refcount">Return value: New reference.</em><em class="stableabi"> Part of the <a class="reference internal" href="stable#stable"><span class="std std-ref">Stable ABI</span></a>.</em> +</dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyDescr_NewMember"> +<code>PyObject *PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)</code> </dt> <dd> +<em class="refcount">Return value: New reference.</em><em class="stableabi"> Part of the <a class="reference internal" href="stable#stable"><span class="std std-ref">Stable ABI</span></a>.</em> +</dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyDescr_NewMethod"> +<code>PyObject *PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)</code> </dt> <dd> +<em class="refcount">Return value: New reference.</em><em class="stableabi"> Part of the <a class="reference internal" href="stable#stable"><span class="std std-ref">Stable ABI</span></a>.</em> +</dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyDescr_NewWrapper"> +<code>PyObject *PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)</code> </dt> <dd><em class="refcount">Return value: New reference.</em></dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyDescr_NewClassMethod"> +<code>PyObject *PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)</code> </dt> <dd> +<em class="refcount">Return value: New reference.</em><em class="stableabi"> Part of the <a class="reference internal" href="stable#stable"><span class="std std-ref">Stable ABI</span></a>.</em> +</dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyDescr_IsData"> +<code>int PyDescr_IsData(PyObject *descr)</code> </dt> <dd> +<p>Return non-zero if the descriptor objects <em>descr</em> describes a data attribute, or <code>0</code> if it describes a method. <em>descr</em> must be a descriptor object; there is no error checking.</p> </dd> +</dl> <dl class="c function"> <dt class="sig sig-object c" id="c.PyWrapper_New"> +<code>PyObject *PyWrapper_New(PyObject*, PyObject*)</code> </dt> <dd> +<em class="refcount">Return value: New reference.</em><em class="stableabi"> Part of the <a class="reference internal" href="stable#stable"><span class="std std-ref">Stable ABI</span></a>.</em> +</dd> +</dl> <div class="_attribution"> + <p class="_attribution-p"> + © 2001–2023 Python Software Foundation<br>Licensed under the PSF License.<br> + <a href="https://docs.python.org/3.12/c-api/descriptor.html" class="_attribution-link">https://docs.python.org/3.12/c-api/descriptor.html</a> + </p> +</div> |
