diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 70b11d6e93056f..6cc1b52ed7b98b 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -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 ` for more information about controlling attribute access.