diff -r d9921cb6e3cd Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Mon Apr 29 12:26:01 2013 +0300 +++ b/Doc/library/stdtypes.rst Mon Apr 29 22:59:58 2013 +0300 @@ -906,7 +906,8 @@ ``'ignore'``, ``'replace'``, ``'xmlcharrefreplace'``, ``'backslashreplace'`` and any other name registered via :func:`codecs.register_error`, see section :ref:`codec-base-classes`. For a list of possible encodings, see section - :ref:`standard-encodings`. + :ref:`standard-encodings`. Return an encoded version of the string always + including an extra trailing newline (``'\n'``). .. versionadded:: 2.0