From ad3215362c60fdff0865e443a6d9946a3e9d3879 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 29 Oct 2013 08:05:10 +0100 Subject: [PATCH 1/4] Fix typo: js_JP is not a valid locale. --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 6ca15b71ae4..065e8507563 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1896,7 +1896,7 @@ Notes: making assumptions about the output value. Field orderings will vary (for example, "month/day/year" versus "day/month/year"), and the output may contain Unicode characters encoded using the locale's default encoding (for - example, if the current locale is ``js_JP``, the default encoding could be + example, if the current locale is ``ja_JP``, the default encoding could be any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale` to determine the current locale's encoding). From 1ed80b09ed3f808980b827aac85497ee0fd3d3c8 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 29 Oct 2013 08:10:36 +0100 Subject: [PATCH 2/4] Fix wrong signature for two-argument newwin(). Found by Jacqueline Leykam on docs@. --- Doc/library/curses.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index cd1915d03b5..314636e4b48 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -377,7 +377,7 @@ The module :mod:`curses` defines the following functions: is to be displayed. -.. function:: newwin(begin_y, begin_x) +.. function:: newwin(nlines, ncols) newwin(nlines, ncols, begin_y, begin_x) Return a new window, whose left-upper corner is at ``(begin_y, begin_x)``, and From 21527bf72f861435c9b97e8dc3d8945771146fc9 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 29 Oct 2013 08:14:51 +0100 Subject: [PATCH 3/4] Closes #19416: fix references in the nntplib docs. --- Doc/library/nntplib.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/nntplib.rst b/Doc/library/nntplib.rst index 1d1aa409c51..759d3b7b29a 100644 --- a/Doc/library/nntplib.rst +++ b/Doc/library/nntplib.rst @@ -395,18 +395,18 @@ tuples or objects that the method normally returns will be empty. .. method:: NNTP.next() - Send a ``NEXT`` command. Return as for :meth:`stat`. + Send a ``NEXT`` command. Return as for :meth:`.stat`. .. method:: NNTP.last() - Send a ``LAST`` command. Return as for :meth:`stat`. + Send a ``LAST`` command. Return as for :meth:`.stat`. .. method:: NNTP.article(message_spec=None, *, file=None) Send an ``ARTICLE`` command, where *message_spec* has the same meaning as - for :meth:`stat`. Return a tuple ``(response, info)`` where *info* + for :meth:`.stat`. Return a tuple ``(response, info)`` where *info* is a :class:`~collections.namedtuple` with three attributes *number*, *message_id* and *lines* (in that order). *number* is the article number in the group (or 0 if the information is not available), *message_id* the From 3d596fa90b3c862eb2c0fb67aaf42cf1237c3258 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 29 Oct 2013 08:16:56 +0100 Subject: [PATCH 4/4] Clarify sentence. --- Doc/howto/unicode.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst index 2920aa11cb3..9d48a787e85 100644 --- a/Doc/howto/unicode.rst +++ b/Doc/howto/unicode.rst @@ -514,7 +514,7 @@ columns and can return Unicode values from an SQL query. Unicode data is usually converted to a particular encoding before it gets written to disk or sent over a socket. It's possible to do all the work -yourself: open a file, read an 8-bit bytes object from it, and convert the string +yourself: open a file, read an 8-bit bytes object from it, and convert the bytes with ``bytes.decode(encoding)``. However, the manual approach is not recommended. One problem is the multi-byte nature of encodings; one Unicode character can be