summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuan Tian <qtian@vmware.com>2018-10-19 21:30:03 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-10-19 21:30:03 (GMT)
commit3bd0d620d6669558e03e1022cbab88d64d4530b3 (patch)
treeeab293c78e5fd68da12326a979710631def36ea0
parentf192aeb95a139ede74d69e39c046c498ff288a37 (diff)
downloadcpython-3bd0d620d6669558e03e1022cbab88d64d4530b3.zip
cpython-3bd0d620d6669558e03e1022cbab88d64d4530b3.tar.gz
cpython-3bd0d620d6669558e03e1022cbab88d64d4530b3.tar.bz2
Fix typos in comments (GH-9905)
-rw-r--r--Modules/gcmodule.c2
-rw-r--r--Python/ceval.c2
-rw-r--r--Python/pyarena.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index e3e290c..7cddaba 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -504,7 +504,7 @@ move_unreachable(PyGC_Head *young, PyGC_Head *unreachable)
(void *)young);
// relink gc_prev to prev element.
_PyGCHead_SET_PREV(gc, prev);
- // gc is not COLLECTING state aftere here.
+ // gc is not COLLECTING state after here.
gc_clear_collecting(gc);
prev = gc;
}
diff --git a/Python/ceval.c b/Python/ceval.c
index 1a8c9e2..9a96dc7 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3092,7 +3092,7 @@ main_loop:
/* There was an exception and a True return.
* We must manually unwind the EXCEPT_HANDLER block
* which was created when the exception was caught,
- * otherwise the stack will be in an inconsisten state.
+ * otherwise the stack will be in an inconsistent state.
*/
PyTryBlock *b = PyFrame_BlockPop(f);
assert(b->b_type == EXCEPT_HANDLER);
diff --git a/Python/pyarena.c b/Python/pyarena.c
index 103603f..abb5729 100644
--- a/Python/pyarena.c
+++ b/Python/pyarena.c
@@ -49,7 +49,7 @@ struct _arena {
*/
block *a_head;
- /* Pointer to the block currently used for allocation. It's
+ /* Pointer to the block currently used for allocation. Its
ab_next field should be NULL. If it is not-null after a
call to block_alloc(), it means a new block has been allocated
and a_cur should be reset to point it.
@@ -57,7 +57,7 @@ struct _arena {
block *a_cur;
/* A Python list object containing references to all the PyObject
- pointers associated with this area. They will be DECREFed
+ pointers associated with this arena. They will be DECREFed
when the arena is freed.
*/
PyObject *a_objects;