Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 440d70301b396c1546511157119b7e9e575d48c4 authored by Victor Stinner on 30 December 2016, 01:14:59 UTC, committed by Victor Stinner on 30 December 2016, 01:14:59 UTC
* Wrong parameter name, 'group_by' instead of 'key_type' * Don't round up numbers when explaining the examples. If they exactly match what can be read in the script output, it is to easier to understand (4.8 MiB vs 4855 KiB) * Fix incorrect method link that was pointing to another module Patch written by Loic Pefferkorn.
1 parent 74b1bcc
Tip revision: 440d70301b396c1546511157119b7e9e575d48c4 authored by Victor Stinner on 30 December 2016, 01:14:59 UTC
Issue #29109: Enhance tracemalloc documentation
Issue #29109: Enhance tracemalloc documentation
Tip revision: 440d703
descriptor.rst
.. highlightlang:: c
.. _descriptor-objects:
Descriptor Objects
------------------
"Descriptors" are objects that describe some attribute of an object. They are
found in the dictionary of type objects.
.. XXX document these!
.. c:var:: PyTypeObject PyProperty_Type
The type object for the built-in descriptor types.
.. c:function:: PyObject* PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
.. c:function:: PyObject* PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
.. c:function:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
.. c:function:: PyObject* PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)
.. c:function:: PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
.. c:function:: int PyDescr_IsData(PyObject *descr)
Return true if the descriptor objects *descr* describes a data attribute, or
false if it describes a method. *descr* must be a descriptor object; there is
no error checking.
.. c:function:: PyObject* PyWrapper_New(PyObject *, PyObject *)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...