mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bug [ 1175022 ] property example code error
This commit is contained in:
parent
03dbb4f50d
commit
e21d9ab342
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue