[Patches] [ python-Patches-936774 ] pydoc data descriptor unification

SourceForge.net noreply at sourceforge.net
Sat Apr 17 01:07:44 EDT 2004


Patches item #936774, was opened at 2004-04-17 14:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=936774&group_id=5470

Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: John Belmonte (jbelmonte)
Assigned to: Nobody/Anonymous (nobody)
Summary: pydoc data descriptor unification

Initial Comment:
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>.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=936774&group_id=5470



More information about the Patches mailing list