]> granicus.if.org Git - python/commitdiff
Bug #1575746: fix typo in property() docs.
authorGeorg Brandl <georg@python.org>
Thu, 12 Oct 2006 07:38:08 +0000 (07:38 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 12 Oct 2006 07:38:08 +0000 (07:38 +0000)
 (backport from rev. 52293)

Doc/lib/libfuncs.tex

index 0a187e238ba3198c88ba4419ae12e1a95aa9c141..dc52915c9283f82dfd02d9f0aebcaabe2934c5fd 100644 (file)
@@ -791,7 +791,7 @@ class C:
 
 \begin{verbatim}
 class C(object):
-    def __init__(self): self.__x = None
+    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