Commit 21b60afd authored by Georg Brandl's avatar Georg Brandl

#5581: fget argument of abstractproperty is optional as well.

parent 74c018a9
......@@ -161,7 +161,7 @@ It also provides the following decorators:
multiple-inheritance.
.. function:: abstractproperty(fget[, fset[, fdel[, doc]]])
.. function:: abstractproperty([fget[, fset[, fdel[, doc]]]])
A subclass of the built-in :func:`property`, indicating an abstract property.
......@@ -189,6 +189,7 @@ It also provides the following decorators:
def setx(self, value): ...
x = abstractproperty(getx, setx)
.. rubric:: Footnotes
.. [#] C++ programmers should note that Python's virtual base class
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment