From 8ae90188cae38f0ad1e150aa2988c9e11b8c6fa8 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 11:56:12 +0800 Subject: [PATCH 01/20] Update summarize_stats.py --- Tools/scripts/summarize_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py index 68cfad3f92cdc7..905af9dcfd802e 100644 --- a/Tools/scripts/summarize_stats.py +++ b/Tools/scripts/summarize_stats.py @@ -492,7 +492,7 @@ def get_optimization_stats(self) -> dict[str, tuple[int, int | None]]: ): (trace_too_long, attempts), Doc( "Trace too short", - "A potential trace is abandoned because it it too short.", + "A potential trace is abandoned because it is too short.", ): (trace_too_short, attempts), Doc( "Inner loop found", "A trace is truncated because it has an inner loop" From 41eb04a9f78aea05bc6dcd359bcca8efe86e446c Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 11:57:22 +0800 Subject: [PATCH 02/20] Update aclocal.m4 --- aclocal.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index 920c2b38560faa..3dec8896c9e71a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -72,7 +72,7 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun # time. The exit code of this test program is a result of indirectly reading # and writing to the memory region where the special value is supposed to # reside. The actual memory addresses used and the values to be written are -# derived from the the program input ("argv") and are therefore not known at +# derived from the program input ("argv") and are therefore not known at # compile or link time. The compiler has no choice but to defer the # computation to run time, and to prepare by allocating and populating the # data segment with the special value. For further details, refer to the From e385d575a896170780295256bb480f8d6bd0903d Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 11:59:11 +0800 Subject: [PATCH 03/20] Update embedding.rst --- Doc/extending/embedding.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index cb41889437c8b0..36e6783fdce188 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -181,7 +181,7 @@ then the result should be: .. code-block:: shell-session - $ call multiply multiply 3 2 + $ call multiply 3 2 Will compute 3 times 2 Result of call: 6 From fd21ccf6390f66b70a6bc27d6bd8613818e402fa Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:02:00 +0800 Subject: [PATCH 04/20] Update refcount.h --- Include/refcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/refcount.h b/Include/refcount.h index 034c453f449f5b..65a4e63a8b0952 100644 --- a/Include/refcount.h +++ b/Include/refcount.h @@ -30,7 +30,7 @@ increase and decrease the objects reference count. In order to offer sufficient resilience to C extensions using the stable ABI compiled against 3.11 or earlier, we set the initial value near the -middle of the range (2**31, 2**32). That way the the refcount can be +middle of the range (2**31, 2**32). That way the refcount can be off by ~1 billion without affecting immortality. Reference count increases will use saturated arithmetic, taking advantage of From 525d7f7b4e23dca41475881df939802135424a46 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:02:55 +0800 Subject: [PATCH 05/20] Update types.h --- Include/internal/mimalloc/mimalloc/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/internal/mimalloc/mimalloc/types.h b/Include/internal/mimalloc/mimalloc/types.h index a04169f7fb84e8..a17f637fe68236 100644 --- a/Include/internal/mimalloc/mimalloc/types.h +++ b/Include/internal/mimalloc/mimalloc/types.h @@ -705,7 +705,7 @@ void _mi_stat_counter_increase(mi_stat_counter_t* stat, size_t amount); // Thread Local data // ------------------------------------------------------ -// A "span" is is an available range of slices. The span queues keep +// A "span" is an available range of slices. The span queues keep // track of slice spans of at most the given `slice_count` (but more than the previous size class). typedef struct mi_span_queue_s { mi_slice_t* first; From 30632fa8f4af0b532ae460d3e64d4861e0df02c3 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:04:10 +0800 Subject: [PATCH 06/20] Update garbage_collector.md --- InternalDocs/garbage_collector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InternalDocs/garbage_collector.md b/InternalDocs/garbage_collector.md index 4da6cd47dc859e..ed8fe5f6735fc1 100644 --- a/InternalDocs/garbage_collector.md +++ b/InternalDocs/garbage_collector.md @@ -286,7 +286,7 @@ object, the GC does not process it twice. Notice that an object that was marked as "tentatively unreachable" and was later moved back to the reachable list will be visited again by the garbage collector -as now all the references that that object has need to be processed as well. This +as now all the references that object has need to be processed as well. This process is really a breadth first search over the object graph. Once all the objects are scanned, the GC knows that all container objects in the tentatively unreachable list are really unreachable and can thus be garbage collected. From 1cbe65aeb73c8eda23a54434f9423a2bbbf5b45d Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:04:47 +0800 Subject: [PATCH 07/20] Update README.rst --- iOS/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/README.rst b/iOS/README.rst index 13b885144932e4..f0979ba152eb20 100644 --- a/iOS/README.rst +++ b/iOS/README.rst @@ -196,7 +196,7 @@ simulator build with a deployment target of 15.4. Merge thin frameworks into fat frameworks ----------------------------------------- -Once you've built a ``Python.framework`` for each ABI and and architecture, you +Once you've built a ``Python.framework`` for each ABI and architecture, you must produce a "fat" framework for each ABI that contains all the architectures for that ABI. From 972b106103efdb8ef6f48b8084a295988a2c1d34 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:06:07 +0800 Subject: [PATCH 08/20] Update configdialog.py --- Lib/idlelib/configdialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index 4d2adb48570d49..e618ef07a90271 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -435,7 +435,7 @@ def on_fontlist_select(self, event): self.font_name.set(font.lower()) def set_samples(self, event=None): - """Update update both screen samples with the font settings. + """Update both screen samples with the font settings. Called on font initialization and change events. Accesses font_name, font_size, and font_bold Variables. From 5fea68da9e4001da5a1b93c3778999c269306a64 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:06:26 +0800 Subject: [PATCH 09/20] Update debugger.py --- Lib/idlelib/debugger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/debugger.py b/Lib/idlelib/debugger.py index d90dbcd11f9f61..50b0744503371a 100644 --- a/Lib/idlelib/debugger.py +++ b/Lib/idlelib/debugger.py @@ -1,6 +1,6 @@ """Debug user code with a GUI interface to a subclass of bdb.Bdb. -The Idb idb and Debugger gui instances each need a reference to each +The Idb and Debugger gui instances each need a reference to each other or to an rpc proxy for each other. If IDLE is started with '-n', so that user code and idb both run in the From c7125e82ae06f4572b6874473ef8fca2e8dd987c Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:06:42 +0800 Subject: [PATCH 10/20] Update editor.py --- Lib/idlelib/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index c76db20c58792d..17b498f63ba43b 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -1649,7 +1649,7 @@ def tokeneater(self, type, token, start, end, line, self.finished = 1 def run(self): - """Return 2 lines containing block opener and and indent. + """Return 2 lines containing block opener and indent. Either the indent line or both may be None. """ From a8e9c039afcabec4b78aace7fbf75e5532caa3c9 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:07:20 +0800 Subject: [PATCH 11/20] Update htest.py --- Lib/idlelib/idle_test/htest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index a7293774eecaeb..b63ff9ec2877b9 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -337,7 +337,7 @@ 'file': 'tree', 'kwds': {}, 'msg': "The canvas is scrollable.\n" - "Click on folders up to to the lowest level." + "Click on folders up to the lowest level." } _undo_delegator_spec = { From b255b45f9874e7265e9ce7cd0213a554d68f9f83 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:08:34 +0800 Subject: [PATCH 12/20] Update test_iter.py --- Lib/test/test_iter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_iter.py b/Lib/test/test_iter.py index 1b9f3cf76240ad..18e4b676c53236 100644 --- a/Lib/test/test_iter.py +++ b/Lib/test/test_iter.py @@ -1147,7 +1147,7 @@ def test_error_iter(self): def test_exception_locations(self): # The location of an exception raised from __init__ or - # __next__ should should be the iterator expression + # __next__ should be the iterator expression def init_raises(): try: From 865e9e06b5fed01cd79e347ad6ba1b101bee6b9f Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 12:08:52 +0800 Subject: [PATCH 13/20] Update test_listcomps.py --- Lib/test/test_listcomps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_listcomps.py b/Lib/test/test_listcomps.py index cffdeeacc5d73b..70148dc30fc957 100644 --- a/Lib/test/test_listcomps.py +++ b/Lib/test/test_listcomps.py @@ -716,7 +716,7 @@ def test_multiple_comprehension_name_reuse(self): def test_exception_locations(self): # The location of an exception raised from __init__ or - # __next__ should should be the iterator expression + # __next__ should be the iterator expression def init_raises(): try: From e7987e47b7dc3476c43ad5bccd8fc0c11e9031fb Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 29 Jun 2025 00:56:31 -0400 Subject: [PATCH 14/20] Apply suggestions from code review --- InternalDocs/garbage_collector.md | 2 +- Lib/idlelib/debugger.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InternalDocs/garbage_collector.md b/InternalDocs/garbage_collector.md index ed8fe5f6735fc1..9c35684c945b3e 100644 --- a/InternalDocs/garbage_collector.md +++ b/InternalDocs/garbage_collector.md @@ -286,7 +286,7 @@ object, the GC does not process it twice. Notice that an object that was marked as "tentatively unreachable" and was later moved back to the reachable list will be visited again by the garbage collector -as now all the references that object has need to be processed as well. This +as now all the references that the object has need to be processed as well. This process is really a breadth first search over the object graph. Once all the objects are scanned, the GC knows that all container objects in the tentatively unreachable list are really unreachable and can thus be garbage collected. diff --git a/Lib/idlelib/debugger.py b/Lib/idlelib/debugger.py index 50b0744503371a..1fae1d4b0adbd7 100644 --- a/Lib/idlelib/debugger.py +++ b/Lib/idlelib/debugger.py @@ -1,6 +1,6 @@ """Debug user code with a GUI interface to a subclass of bdb.Bdb. -The Idb and Debugger gui instances each need a reference to each +The Idb instance 'idb' and Debugger instance 'gui' need references to each other or to an rpc proxy for each other. If IDLE is started with '-n', so that user code and idb both run in the From d30240b3780225c295a2c33791a1f82bcf773f27 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 13:53:08 +0800 Subject: [PATCH 15/20] Update htest.py --- Lib/idlelib/idle_test/htest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index b63ff9ec2877b9..a7293774eecaeb 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -337,7 +337,7 @@ 'file': 'tree', 'kwds': {}, 'msg': "The canvas is scrollable.\n" - "Click on folders up to the lowest level." + "Click on folders up to to the lowest level." } _undo_delegator_spec = { From a7a260ceaef15fcec1ecb41bbb8f38eb9fc9a2d8 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 13:53:52 +0800 Subject: [PATCH 16/20] Update editor.py --- Lib/idlelib/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 17b498f63ba43b..c76db20c58792d 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -1649,7 +1649,7 @@ def tokeneater(self, type, token, start, end, line, self.finished = 1 def run(self): - """Return 2 lines containing block opener and indent. + """Return 2 lines containing block opener and and indent. Either the indent line or both may be None. """ From 1bba3b587bc16f8cd17f6336ec5f85f2fd3249b3 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 13:54:29 +0800 Subject: [PATCH 17/20] Update configdialog.py --- Lib/idlelib/configdialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index e618ef07a90271..4d2adb48570d49 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -435,7 +435,7 @@ def on_fontlist_select(self, event): self.font_name.set(font.lower()) def set_samples(self, event=None): - """Update both screen samples with the font settings. + """Update update both screen samples with the font settings. Called on font initialization and change events. Accesses font_name, font_size, and font_bold Variables. From eb5eef670615fe3b541ee89e09779e3d1ebf302c Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 13:54:57 +0800 Subject: [PATCH 18/20] Update debugger.py --- Lib/idlelib/debugger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/debugger.py b/Lib/idlelib/debugger.py index 1fae1d4b0adbd7..d90dbcd11f9f61 100644 --- a/Lib/idlelib/debugger.py +++ b/Lib/idlelib/debugger.py @@ -1,6 +1,6 @@ """Debug user code with a GUI interface to a subclass of bdb.Bdb. -The Idb instance 'idb' and Debugger instance 'gui' need references to each +The Idb idb and Debugger gui instances each need a reference to each other or to an rpc proxy for each other. If IDLE is started with '-n', so that user code and idb both run in the From faecf0d267288628d2487f760773ae6fc68c7884 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 21:31:01 +0800 Subject: [PATCH 19/20] Update aclocal.m4 --- aclocal.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index 3dec8896c9e71a..920c2b38560faa 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -72,7 +72,7 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun # time. The exit code of this test program is a result of indirectly reading # and writing to the memory region where the special value is supposed to # reside. The actual memory addresses used and the values to be written are -# derived from the program input ("argv") and are therefore not known at +# derived from the the program input ("argv") and are therefore not known at # compile or link time. The compiler has no choice but to defer the # computation to run time, and to prepare by allocating and populating the # data segment with the special value. For further details, refer to the From 67bd4cee9775bc68649dc35878759926cc672b45 Mon Sep 17 00:00:00 2001 From: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Date: Sun, 29 Jun 2025 21:53:07 +0800 Subject: [PATCH 20/20] Update embedding.rst --- Doc/extending/embedding.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 36e6783fdce188..cb41889437c8b0 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -181,7 +181,7 @@ then the result should be: .. code-block:: shell-session - $ call multiply 3 2 + $ call multiply multiply 3 2 Will compute 3 times 2 Result of call: 6