From b768c9422e2b824d4db6990ed90ff189c4b2b1aa Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sun, 26 Apr 2020 21:23:52 -0600 Subject: [PATCH] bpo-40348: Fix typos in the programming FAQ (GH-19729) (cherry picked from commit caf1aadf3d020f742ba3d7fcf678ca700224914b) Co-authored-by: Zackery Spytz --- Doc/faq/programming.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 270f57d8b80937..604c8ff521e89d 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -1501,8 +1501,8 @@ to uppercase:: Here the ``UpperOut`` class redefines the ``write()`` method to convert the argument string to uppercase before calling the underlying -``self.__outfile.write()`` method. All other methods are delegated to the -underlying ``self.__outfile`` object. The delegation is accomplished via the +``self._outfile.write()`` method. All other methods are delegated to the +underlying ``self._outfile`` object. The delegation is accomplished via the ``__getattr__`` method; consult :ref:`the language reference ` for more information about controlling attribute access.