]> granicus.if.org Git - python/commit
Add optional docstrings to getset descriptors. Fortunately, there's
authorGuido van Rossum <guido@python.org>
Thu, 20 Sep 2001 21:45:26 +0000 (21:45 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 20 Sep 2001 21:45:26 +0000 (21:45 +0000)
commit32d34c809f5971f79462dcb7d0f536d46e624acc
tree29d97883adf68d8112d55c94eca8f4fb93048628
parenta56b42b1ba646170d5476e8925c56e2266b37f98
Add optional docstrings to getset descriptors.  Fortunately, there's
no backwards compatibility to worry about, so I just pushed the
'closure' struct member to the back -- it's never used in the current
code base (I may eliminate it, but that's more work because the getter
and setter signatures would have to change.)

As examples, I added actual docstrings to the getset attributes of a
few types: file.closed, xxsubtype.spamdict.state.
Include/descrobject.h
Include/object.h
Modules/xxsubtype.c
Objects/classobject.c
Objects/descrobject.c
Objects/fileobject.c
Objects/frameobject.c
Objects/funcobject.c
Objects/methodobject.c
Objects/typeobject.c