Skip to content

Commit 78a1218

Browse files
committed
Minor corrections in previous example
1 parent 7909c0b commit 78a1218

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,6 @@ Suggested by @Lucas-C in [this](https://github.com/satwikkansal/wtfpython/issues
17101710
17111711
17121712
```py
1713-
# Name mangling:
17141713
class Yo(object):
17151714
def __init__(self):
17161715
self.__honey = True
@@ -1719,9 +1718,9 @@ class Yo(object):
17191718
17201719
**Output:**
17211720
```py
1722-
>>> Yo().bitch()
1721+
>>> Yo().bitch
17231722
True
1724-
>>> Yo().__honey()
1723+
>>> Yo().__honey
17251724
AttributeError: 'Yo' object has no attribute '__honey'
17261725
>>> Yo()._Yo__honey
17271726
True

0 commit comments

Comments
 (0)