]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Patch #936774: unify the display of data descriptors, including slots,
authorJohannes Gijsbers <jlg@dds.nl>
Sat, 8 Jan 2005 20:16:43 +0000 (20:16 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Sat, 8 Jan 2005 20:16:43 +0000 (20:16 +0000)
commit9ddb3005986dae244935c670cdd58cc08b09f752
treed849479d5445f1e3393dcc67b956a7427540fa14
parent9a98364ba3369f76583774d4414be8c719849fb6
Patch #936774: unify the display of data descriptors, including slots,
properties, and custom descriptors.

* 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

Thanks to John Belmonte for the patch!
Lib/pydoc.py