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

index c624cc828e571c4bae3728325608db976ecdcb36..b62d1d1554e6c202e519d56266d95bf13a1ce475 100644 (file)
@@ -717,6 +717,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