mirror of
https://github.com/python/cpython
synced 2024-09-16 00:07:33 +00:00
Fix SF bug #766288, property() example gives syntax error
This commit is contained in:
parent
be56aae36a
commit
b25229d823
|
@ -747,7 +747,7 @@ class C(object):
|
|||
def getx(self): return self.__x
|
||||
def setx(self, value): self.__x = value
|
||||
def delx(self): del self.__x
|
||||
x = property(getx, setx, delx, "I'm the 'x' property.")
|
||||
x = property(getx, setx, delx, "I'm the 'x' property.")
|
||||
\end{verbatim}
|
||||
|
||||
\versionadded{2.2}
|
||||
|
|
Loading…
Reference in a new issue