mirror of https://github.com/python/cpython
#5581: fget argument of abstractproperty is optional as well.
This commit is contained in:
parent
74c018a981
commit
21b60afd4c
|
@ -161,7 +161,7 @@ It also provides the following decorators:
|
||||||
multiple-inheritance.
|
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.
|
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): ...
|
def setx(self, value): ...
|
||||||
x = abstractproperty(getx, setx)
|
x = abstractproperty(getx, setx)
|
||||||
|
|
||||||
|
|
||||||
.. rubric:: Footnotes
|
.. rubric:: Footnotes
|
||||||
|
|
||||||
.. [#] C++ programmers should note that Python's virtual base class
|
.. [#] C++ programmers should note that Python's virtual base class
|
||||||
|
|
Loading…
Reference in New Issue