]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bug [ 1175022 ] property example code error
authorGeorg Brandl <georg@python.org>
Sat, 25 Jun 2005 20:07:36 +0000 (20:07 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 25 Jun 2005 20:07:36 +0000 (20:07 +0000)
Doc/lib/libfuncs.tex

index cd1486506d31b854142d4b0b6e573e24456113a1..63a73b1476f9b9a1327ca2295d5a8183e4e140ce 100644 (file)
@@ -755,6 +755,7 @@ class C:
 
 \begin{verbatim}
 class C(object):
+    def __init__(self): self.__x = None
     def getx(self): return self.__x
     def setx(self, value): self.__x = value
     def delx(self): del self.__x