]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40348: Fix typos in the programming FAQ (GH-19729) 19747/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 27 Apr 2020 03:29:30 +0000 (20:29 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 03:29:30 +0000 (20:29 -0700)
(cherry picked from commit caf1aadf3d020f742ba3d7fcf678ca700224914b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/faq/programming.rst

index 70b11d6e93056fdcbad892efefa81ee11284aa84..6cc1b52ed7b98bfcbf40eb746c7d598119b4fa01 100644 (file)
@@ -1494,8 +1494,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 <attribute-access>`
 for more information about controlling attribute access.