From 6b94caeb10fa3e37a06d1d3ed0a22cf0e983c555 Mon Sep 17 00:00:00 2001 From: manoj Date: Mon, 27 Apr 2026 19:20:27 +0530 Subject: [PATCH 1/3] Fix typos,inconsistent words and sentences in curses.ascii.rst --- Doc/library/curses.ascii.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Doc/library/curses.ascii.rst b/Doc/library/curses.ascii.rst index 9ae82c14465538..e48bfc9d507d43 100644 --- a/Doc/library/curses.ascii.rst +++ b/Doc/library/curses.ascii.rst @@ -8,7 +8,7 @@ -------------- -The :mod:`!curses.ascii` module supplies name constants for ASCII characters and +The :mod:`!curses.ascii` module supplies named constants for ASCII characters and functions to test membership in various ASCII character classes. The constants supplied are names for control characters as follows: @@ -97,7 +97,7 @@ C library: .. function:: isalnum(c) - Checks for an ASCII alphanumeric character; it is equivalent to ``isalpha(c) or + Checks for an ASCII alpha-numeric character; it is equivalent to ``isalpha(c) or isdigit(c)``. @@ -114,7 +114,7 @@ C library: .. function:: isblank(c) - Checks for an ASCII whitespace character; space or horizontal tab. + Checks for an ASCII white-space character; space or horizontal tab. .. function:: iscntrl(c) @@ -130,7 +130,7 @@ C library: .. function:: isgraph(c) - Checks for ASCII any printable character except space. + Checks for any printable ASCII character except space. .. function:: islower(c) @@ -140,12 +140,12 @@ C library: .. function:: isprint(c) - Checks for any ASCII printable character including space. + Checks for any printable ASCII character including space. .. function:: ispunct(c) - Checks for any printable ASCII character which is not a space or an alphanumeric + Checks for any printable ASCII character which is not a space or an alpha-numeric character. @@ -157,7 +157,7 @@ C library: .. function:: isupper(c) - Checks for an ASCII uppercase letter. + Checks for an ASCII upper-case letter. .. function:: isxdigit(c) @@ -214,8 +214,8 @@ it returns a string. Return a string representation of the ASCII character *c*. If *c* is printable, this string is the character itself. If the character is a control character - (0x00--0x1f) the string consists of a caret (``'^'``) followed by the - corresponding uppercase letter. If the character is an ASCII delete (0x7f) the + (0x00--0x1f), the string consists of a caret (``'^'``) followed by the + corresponding upper-case letter. If the character is an ASCII delete (0x7f), the string is ``'^?'``. If the character has its meta bit (0x80) set, the meta bit is stripped, the preceding rules applied, and ``'!'`` prepended to the result. From 6b3199cf7390ffa598787b1d88585a29a0a75ec3 Mon Sep 17 00:00:00 2001 From: manoj Date: Mon, 27 Apr 2026 19:49:01 +0530 Subject: [PATCH 2/3] Undo compound-adjective changes --- Doc/library/curses.ascii.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/library/curses.ascii.rst b/Doc/library/curses.ascii.rst index e48bfc9d507d43..e956957422d42b 100644 --- a/Doc/library/curses.ascii.rst +++ b/Doc/library/curses.ascii.rst @@ -97,7 +97,7 @@ C library: .. function:: isalnum(c) - Checks for an ASCII alpha-numeric character; it is equivalent to ``isalpha(c) or + Checks for an ASCII alphanumeric character; it is equivalent to ``isalpha(c) or isdigit(c)``. @@ -114,7 +114,7 @@ C library: .. function:: isblank(c) - Checks for an ASCII white-space character; space or horizontal tab. + Checks for an ASCII whitespace character; space or horizontal tab. .. function:: iscntrl(c) @@ -145,19 +145,19 @@ C library: .. function:: ispunct(c) - Checks for any printable ASCII character which is not a space or an alpha-numeric + Checks for any printable ASCII character which is not a space or an alphanumeric character. .. function:: isspace(c) - Checks for ASCII white-space characters; space, line feed, carriage return, form + Checks for ASCII whitespace characters; space, line feed, carriage return, form feed, horizontal tab, vertical tab. .. function:: isupper(c) - Checks for an ASCII upper-case letter. + Checks for an ASCII uppercase letter. .. function:: isxdigit(c) @@ -215,7 +215,7 @@ it returns a string. Return a string representation of the ASCII character *c*. If *c* is printable, this string is the character itself. If the character is a control character (0x00--0x1f), the string consists of a caret (``'^'``) followed by the - corresponding upper-case letter. If the character is an ASCII delete (0x7f), the + corresponding uppercase letter. If the character is an ASCII delete (0x7f), the string is ``'^?'``. If the character has its meta bit (0x80) set, the meta bit is stripped, the preceding rules applied, and ``'!'`` prepended to the result. From 83d6237f1a87e7b814ebc8644fdac36820a28acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:28:27 +0200 Subject: [PATCH 3/3] Update Doc/library/curses.ascii.rst --- Doc/library/curses.ascii.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/curses.ascii.rst b/Doc/library/curses.ascii.rst index e956957422d42b..34fa667ec636a1 100644 --- a/Doc/library/curses.ascii.rst +++ b/Doc/library/curses.ascii.rst @@ -151,7 +151,7 @@ C library: .. function:: isspace(c) - Checks for ASCII whitespace characters; space, line feed, carriage return, form + Checks for whitespace ASCII characters; space, line feed, carriage return, form feed, horizontal tab, vertical tab.