This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pydoc data descriptor unification
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jlgijsbers Nosy List: jbelmonte, jlgijsbers
Priority: normal Keywords: patch

Created on 2004-04-17 05:07 by jbelmonte, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pydoc_descriptors.patch jbelmonte, 2004-04-17 05:07 patch to pydoc
test1.py jbelmonte, 2004-04-17 05:10 input example
test1.txt jbelmonte, 2004-04-17 05:14 output example (text)
Messages (2)
msg45789 - (view) Author: John Belmonte (jbelmonte) * Date: 2004-04-17 05:07
This patch to pydoc unifies the display of data
descriptors, including slots, properties, and custom
descriptors.

The changes are as follows:

    * removed special handling of properties

    * added special handling of data descriptors - All
data descriptors are grouped together in a section. 
For each item, the attribute name and doc string, if
present, is displayed.     
 
    * disabled display of __slots__ attribute - since
slots are descriptors, they are listed in the section
described above

A complementary change to Python will be to support
setting of doc strings on slots.  The proposal is to
use dictionary values when __slots__ is a dictionary
object, as suggested in Guido's "Unifying types and
classes".

The rationale for these changes is described in
<http://mail.python.org/pipermail/python-dev/2004-April/044213.html>.
msg45790 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2005-01-08 20:18
Logged In: YES 
user_id=469548

Checked in as rev 1.102 of pydoc.py, with some minor changes:

* renamed _docproperty to _docdescriptor
* made names of data descriptors bold, and put a newline
between each of them, to be consistent with the rest of the
methods and data
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40159
2004-04-17 05:07:44jbelmontecreate