From 21b60afd4cd780bb436855fe8c0ee3aebb08b178 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 31 Mar 2009 15:50:16 +0000 Subject: [PATCH] #5581: fget argument of abstractproperty is optional as well. --- Doc/library/abc.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index 9461aa5dc2e..d591daa387d 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -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