Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8348fb commit 3e5bcd1Copy full SHA for 3e5bcd1
1 file changed
Doc/tutorial/classes.rst
@@ -703,6 +703,11 @@ breaking intraclass method calls. For example::
703
for item in zip(keys, values):
704
self.items_list.append(item)
705
706
+The above example would work even if ``MappingSubclass`` were to introduce a
707
+``__update`` identifier since it is replaced with ``_Mapping__update`` in the
708
+``Mapping`` class and ``_MappingSubclass__update`` in the ``MappingSubclass``
709
+class respectively.
710
+
711
Note that the mangling rules are designed mostly to avoid accidents; it still is
712
possible to access or modify a variable that is considered private. This can
713
even be useful in special circumstances, such as in the debugger.
0 commit comments