mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix SF bug #766288, property() example gives syntax error
This commit is contained in:
parent
be56aae36a
commit
b25229d823
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue