From 1b100a2f1a81cdf314e1b0b55b37b18d065b8b21 Mon Sep 17 00:00:00 2001 From: Real Python Bot <42617967+realpython-bot@users.noreply.github.com> Date: Wed, 21 Oct 2026 06:06:56 +0000 Subject: [PATCH] Sync python-double-underscore with the maintenance update of Single and Double Underscores in Python Names Co-Authored-By: Claude Opus 5.5 --- python-double-underscore/mangling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-double-underscore/mangling.py b/python-double-underscore/mangling.py index 74ed7cbd8e..faad56c230 100644 --- a/python-double-underscore/mangling.py +++ b/python-double-underscore/mangling.py @@ -3,7 +3,7 @@ def __init__(self): self.__attr = 0 def __method(self): - print("A.__attr = ", self.__attr) + print("A.__attr =", self.__attr) class B(A): @@ -12,7 +12,7 @@ def __init__(self): self.__attr = 1 # Doesn't override A.__attr def __method(self): # Doesn't override A.__method() - print("B.__attr = ", self.__attr) + print("B.__attr =", self.__attr) if __name__ == "__main__":