]> granicus.if.org Git - python/commitdiff
#5581: fget argument of abstractproperty is optional as well.
authorGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 15:50:16 +0000 (15:50 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 15:50:16 +0000 (15:50 +0000)
Doc/library/abc.rst

index 9461aa5dc2e8f6240a12ac1663718de2373cb216..d591daa387d522b90928bac0f8dab1627b7684bf 100644 (file)
@@ -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