From 48d0ff77efe3b71cce283cf097730e9b8b3dbd12 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:14:10 +0800 Subject: [PATCH 1/8] fix a typo in Doc/c-api/stable.rst --- Doc/c-api/stable.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/stable.rst b/Doc/c-api/stable.rst index c66b296d304adc..63a100a6f26f24 100644 --- a/Doc/c-api/stable.rst +++ b/Doc/c-api/stable.rst @@ -18,7 +18,7 @@ way; see :ref:`stable-abi-platform` below). So, code compiled for Python 3.10.0 will work on 3.10.8 and vice versa, but will need to be compiled separately for 3.9.x and 3.10.x. -There are two tiers of C API with different stability exepectations: +There are two tiers of C API with different stability expectations: - :ref:`Unstable API `, may change in minor versions without a deprecation period. It is marked by the ``PyUnstable`` prefix in names. From 3576a56ac71d0f78f6ebcc826df5da7961e0da40 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:18:08 +0800 Subject: [PATCH 2/8] fix a typo in Doc/c-api/typeobj.rst --- Doc/c-api/typeobj.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index acaf0eced35b3f..f417c68fd1efd4 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -1728,7 +1728,7 @@ and :c:data:`PyType_Type` effectively act as defaults.) treated as read-only. Some types may not store their dictionary in this slot. - Use :c:func:`PyType_GetDict` to retreive the dictionary for an arbitrary + Use :c:func:`PyType_GetDict` to retrieve the dictionary for an arbitrary type. .. versionchanged:: 3.12 From 655c51e3374e7f75208e1ab3327ce53970253441 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:31:17 +0800 Subject: [PATCH 3/8] fix a typo in Doc/using/configure.rst --- Doc/using/configure.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 50f60ee54fed14..6279b0efbf9321 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -230,7 +230,7 @@ Install Options Install architecture-independent files in PREFIX. On Unix, it defaults to :file:`/usr/local`. - This value can be retrived at runtime using :data:`sys.prefix`. + This value can be retrieved at runtime using :data:`sys.prefix`. As an example, one can use ``--prefix="$HOME/.local/"`` to install a Python in its home directory. @@ -239,7 +239,7 @@ Install Options Install architecture-dependent files in EPREFIX, defaults to :option:`--prefix`. - This value can be retrived at runtime using :data:`sys.exec_prefix`. + This value can be retrieved at runtime using :data:`sys.exec_prefix`. .. cmdoption:: --disable-test-modules From d2734cf144ea66cc9370383a6fd99cd0139d988d Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:32:50 +0800 Subject: [PATCH 4/8] fix a typo in Doc/library/tkinter.rst --- Doc/library/tkinter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index 9f6c3e3e862c42..76cccc4e9dc9bc 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -348,7 +348,7 @@ Understanding How Tkinter Wraps Tcl/Tk When your application uses Tkinter's classes and methods, internally Tkinter is assembling strings representing Tcl/Tk commands, and executing those -commands in the Tcl interpreter attached to your applicaton's :class:`Tk` +commands in the Tcl interpreter attached to your application's :class:`Tk` instance. Whether it's trying to navigate reference documentation, trying to find From 0a8f64b47e662f3396279053b97e8656ab1086e4 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:34:15 +0800 Subject: [PATCH 5/8] fix a typo in Doc/library/statistics.rst --- Doc/library/statistics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 368b2a17cef997..a8a79012565321 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -1091,7 +1091,7 @@ parameter, ``h``, representing the variance of the kernel function. import math def kde_normal(sample, h): - "Create a continous probability density function from a sample." + "Create a continuous probability density function from a sample." # Smooth the sample with a normal distribution of variance h. kernel_h = NormalDist(0.0, math.sqrt(h)).pdf n = len(sample) From 867c9ccb92b91f8c493cf0af3618690b7e5fd87c Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:35:17 +0800 Subject: [PATCH 6/8] fix a typo in Doc/library/sqlite3.rst --- Doc/library/sqlite3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 0d7abae6de2694..5137e173e23740 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -1566,7 +1566,7 @@ Cursor objects :raises ProgrammingError: If *sql* contains more than one SQL statement, - or is not a DML statment. + or is not a DML statement. Example: From 62db5bab3ee1f1f518d1c433059c491914daaddf Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:37:03 +0800 Subject: [PATCH 7/8] fix a typo in Doc/library/importlib.rst --- Doc/library/importlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 1d378dbbdace5d..d8cc7079a1d812 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -1270,7 +1270,7 @@ an :term:`importer`. You can get the same effect as this function by implementing the basic interface of multi-phase init (:pep:`489`) and lying about - support for mulitple interpreters (or per-interpreter GIL). + support for multiple interpreters (or per-interpreter GIL). .. warning:: Using this function to disable the check can lead to From 3a22c407289ec66593b7c64768517a9980ad6269 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Tue, 29 Aug 2023 07:38:21 +0800 Subject: [PATCH 8/8] fix a typo in Doc/library/idle.rst --- Doc/library/idle.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index 3058bcead661f3..3211da50dc745c 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -479,7 +479,7 @@ Search and Replace Any selection becomes a search target. However, only selections within a line work because searches are only performed within lines with the -terminal newline removed. If ``[x] Regular expresion`` is checked, the +terminal newline removed. If ``[x] Regular expression`` is checked, the target is interpreted according to the Python re module. .. _completions: