From 99b2aaed864d61199e6f28ef0eecc66b47bd2430 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 20 Jul 2025 22:42:27 +0200 Subject: [PATCH 1/3] chore: fix typos Typos were identified by google.jules and manually reviewed for correctness --- Doc/bugs.rst | 4 ++-- Doc/c-api/init.rst | 2 +- Lib/_py_warnings.py | 2 +- Mac/BuildScript/README.rst | 2 +- Misc/rhel7/README.md | 2 +- Modules/_abc.c | 2 +- iOS/README.rst | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Doc/bugs.rst b/Doc/bugs.rst index 5d0f68ca69675e..4ae0af1f03d0ac 100644 --- a/Doc/bugs.rst +++ b/Doc/bugs.rst @@ -8,8 +8,8 @@ Python is a mature programming language which has established a reputation for stability. In order to maintain this reputation, the developers would like to know of any deficiencies you find in Python. -It can be sometimes faster to fix bugs yourself and contribute patches to -Python as it streamlines the process and involves less people. Learn how to +It can sometimes be faster to fix bugs yourself and contribute patches to +Python as it streamlines the process and involves fewer people. Learn how to :ref:`contribute `. Documentation bugs diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 409539dec17d73..57055615547a84 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -425,7 +425,7 @@ Initializing and finalizing the interpreter Note that Python will do a best effort at freeing all memory allocated by the Python interpreter. Therefore, any C-Extension should make sure to correctly clean up all - of the preveiously allocated PyObjects before using them in subsequent calls to + of the previously allocated PyObjects before using them in subsequent calls to :c:func:`Py_Initialize`. Otherwise it could introduce vulnerabilities and incorrect behavior. diff --git a/Lib/_py_warnings.py b/Lib/_py_warnings.py index cbaa94458629ac..975b0ef1c8ad9f 100644 --- a/Lib/_py_warnings.py +++ b/Lib/_py_warnings.py @@ -33,7 +33,7 @@ def _set_module(module): # - a class representing the warning category # - a compiled regex that must match the module that is being warned # - a line number for the line being warning, or 0 to mean any line -# If either if the compiled regexs are None, match anything. +# If either of the compiled regexs are None, match anything. filters = [] diff --git a/Mac/BuildScript/README.rst b/Mac/BuildScript/README.rst index e44e74f3a49234..d343af13169354 100644 --- a/Mac/BuildScript/README.rst +++ b/Mac/BuildScript/README.rst @@ -12,7 +12,7 @@ package. This format is deprecated and is no longer supported by modern macOS systems; it is usable on macOS 10.6 and earlier systems. To be usable on newer versions of macOS, the bits in the bundle package must be assembled in a macOS flat installer package, using current -versions of the pkgbuild and productbuild utilities. To pass macoS +versions of the pkgbuild and productbuild utilities. To pass macOS Gatekeeper download quarantine, the final package must be signed with a valid Apple Developer ID certificate using productsign. Starting with macOS 10.15 Catalina, Gatekeeper now also requires diff --git a/Misc/rhel7/README.md b/Misc/rhel7/README.md index 8642e7c678f279..41c0868ad40800 100644 --- a/Misc/rhel7/README.md +++ b/Misc/rhel7/README.md @@ -12,7 +12,7 @@ command. sudo yum install pkgconfig 'tcl-devel >= 8.5.12' 'tk-devel >= 8.5.12' openssl11-devel ``` -The run `configure` with `PKG_CONFIG_PATH` environment variable. +Then run `configure` with `PKG_CONFIG_PATH` environment variable. ```shell PKG_CONFIG_PATH=Misc/rhel7 ./configure -C diff --git a/Modules/_abc.c b/Modules/_abc.c index d6a953b336025d..d9fc0a46d1d545 100644 --- a/Modules/_abc.c +++ b/Modules/_abc.c @@ -549,7 +549,7 @@ _abc._abc_register subclass: object / -Internal ABC helper for subclasss registration. Should be never used outside abc module. +Internal ABC helper for subclass registration. Should be never used outside abc module. [clinic start generated code]*/ static PyObject * diff --git a/iOS/README.rst b/iOS/README.rst index f0979ba152eb20..3cae0264b0bc2d 100644 --- a/iOS/README.rst +++ b/iOS/README.rst @@ -359,7 +359,7 @@ automatic breakpoints can be inconvenient. However, they can be disabled by creating a symbolic breakpoint that is triggered at the start of the test run. Select "Debug > Breakpoints > Create Symbolic Breakpoint" from the Xcode menu, and -populate the new brewpoint with the following details: +populate the new breakpoint with the following details: * **Name**: IgnoreSignals * **Symbol**: UIApplicationMain From 6aa9d59bb4c14f3bcad2095507127e5be27b6ca0 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 20 Jul 2025 22:58:46 +0200 Subject: [PATCH 2/3] ./configure && make regen-all --- Modules/_abc.c | 2 +- Modules/clinic/_abc.c.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_abc.c b/Modules/_abc.c index d9fc0a46d1d545..a5a0659c4e4458 100644 --- a/Modules/_abc.c +++ b/Modules/_abc.c @@ -554,7 +554,7 @@ Internal ABC helper for subclass registration. Should be never used outside abc static PyObject * _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass) -/*[clinic end generated code: output=7851e7668c963524 input=ca589f8c3080e67f]*/ +/*[clinic end generated code: output=7851e7668c963524 input=fdf6a8117da33121]*/ { if (!PyType_Check(subclass)) { PyErr_SetString(PyExc_TypeError, "Can only register classes"); diff --git a/Modules/clinic/_abc.c.h b/Modules/clinic/_abc.c.h index 04681fa2206a2a..43ba3ebddba3e0 100644 --- a/Modules/clinic/_abc.c.h +++ b/Modules/clinic/_abc.c.h @@ -52,7 +52,7 @@ PyDoc_STRVAR(_abc__abc_register__doc__, "_abc_register($module, self, subclass, /)\n" "--\n" "\n" -"Internal ABC helper for subclasss registration. Should be never used outside abc module."); +"Internal ABC helper for subclass registration. Should be never used outside abc module."); #define _ABC__ABC_REGISTER_METHODDEF \ {"_abc_register", _PyCFunction_CAST(_abc__abc_register), METH_FASTCALL, _abc__abc_register__doc__}, @@ -161,4 +161,4 @@ _abc_get_cache_token(PyObject *module, PyObject *Py_UNUSED(ignored)) { return _abc_get_cache_token_impl(module); } -/*[clinic end generated code: output=1989b6716c950e17 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=dde8efe9ff1ac4cc input=a9049054013a1b77]*/ From 5c88a7a60d5c2bd8ded8d4974a460d43584b7c64 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Mon, 21 Jul 2025 12:20:29 +0200 Subject: [PATCH 3/3] Revert less -> fewer change only --- Doc/bugs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/bugs.rst b/Doc/bugs.rst index 4ae0af1f03d0ac..0bf316807419ae 100644 --- a/Doc/bugs.rst +++ b/Doc/bugs.rst @@ -9,7 +9,7 @@ stability. In order to maintain this reputation, the developers would like to know of any deficiencies you find in Python. It can sometimes be faster to fix bugs yourself and contribute patches to -Python as it streamlines the process and involves fewer people. Learn how to +Python as it streamlines the process and involves less people. Learn how to :ref:`contribute `. Documentation bugs pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy