[Python-checkins] bpo-40348: Fix typos in the programming FAQ (GH-19729)
Miss Islington (bot)
webhook-mailer at python.org
Sun Apr 26 23:29:11 EDT 2020
https://github.com/python/cpython/commit/25def5f2187154ccb6d75751f395a949f4726b1c
commit: 25def5f2187154ccb6d75751f395a949f4726b1c
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020年04月26日T20:29:03-07:00
summary:
bpo-40348: Fix typos in the programming FAQ (GH-19729)
(cherry picked from commit caf1aadf3d020f742ba3d7fcf678ca700224914b)
Co-authored-by: Zackery Spytz <zspytz at gmail.com>
files:
M Doc/faq/programming.rst
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 270f57d8b8093..604c8ff521e89 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 <attribute-access>`
for more information about controlling attribute access.
More information about the Python-checkins
mailing list