Commit b25229d8 authored by Neal Norwitz's avatar Neal Norwitz

Fix SF bug #766288, property() example gives syntax error

parent be56aae3
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment