From: Zackery Spytz Date: Mon, 27 Apr 2020 03:23:52 +0000 (-0600) Subject: bpo-40348: Fix typos in the programming FAQ (GH-19729) X-Git-Tag: v3.9.0a6~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caf1aadf3d020f742ba3d7fcf678ca700224914b;p=thirdparty%2FPython%2Fcpython.git bpo-40348: Fix typos in the programming FAQ (GH-19729) --- diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 68f9ce811a64..61ffc5dbdaa7 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -1495,8 +1495,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.