From 78a1218dbdfb1833e38ebab77104ce9362970d8c Mon Sep 17 00:00:00 2001 From: Satwik Kansal Date: Sun, 7 Jan 2018 11:27:23 +0530 Subject: [PATCH] Minor corrections in previous example --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3031db8..1c3762e 100755 --- a/README.md +++ b/README.md @@ -1710,7 +1710,6 @@ Suggested by @Lucas-C in [this](https://github.com/satwikkansal/wtfpython/issues ```py -# Name mangling: class Yo(object): def __init__(self): self.__honey = True @@ -1719,9 +1718,9 @@ class Yo(object): **Output:** ```py ->>> Yo().bitch() +>>> Yo().bitch True ->>> Yo().__honey() +>>> Yo().__honey AttributeError: 'Yo' object has no attribute '__honey' >>> Yo()._Yo__honey True