summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-30 20:42:54 (GMT)
committerGitHub <noreply@github.com>2019-08-30 20:42:54 (GMT)
commit4bd1d05ee247f200e52fab3958d875bd88073e5b (patch)
treee123f9b7cd40d19341b2b011bf706704b48f9f5c /Python
parent3d75857dfa0e50dd6e5439e8bd92c07c5d5e9839 (diff)
downloadcpython-4bd1d05ee247f200e52fab3958d875bd88073e5b.zip
cpython-4bd1d05ee247f200e52fab3958d875bd88073e5b.tar.gz
cpython-4bd1d05ee247f200e52fab3958d875bd88073e5b.tar.bz2
Fix typos mostly in comments, docs and test names (GH-15209)
(cherry picked from commit 39d87b54715197ca9dcb6902bb43461c0ed701a2) Co-authored-by: Min ho Kim <minho42@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c2
-rw-r--r--Python/pystate.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 9947824..79a29a6 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -5359,7 +5359,7 @@ typedef struct {
doubling the number allocated each time. Note that the f-string
f'{0}a{1}' contains 3 expr_ty's: 2 FormattedValue's, and one
Constant for the literal 'a'. So you add expr_ty's about twice as
- fast as you add exressions in an f-string. */
+ fast as you add expressions in an f-string. */
Py_ssize_t allocated; /* Number we've allocated. */
Py_ssize_t size; /* Number we've used. */
diff --git a/Python/pystate.c b/Python/pystate.c
index 833e0fb..8f30c94 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -730,7 +730,7 @@ PyState_RemoveModule(struct PyModuleDef* def)
return -1;
}
if (state->modules_by_index == NULL) {
- Py_FatalError("PyState_RemoveModule: Interpreters module-list not acessible.");
+ Py_FatalError("PyState_RemoveModule: Interpreters module-list not accessible.");
return -1;
}
if (index > PyList_GET_SIZE(state->modules_by_index)) {
@@ -885,7 +885,7 @@ PyThreadState_DeleteCurrent()
* Note that, if there is a current thread state, it *must* be the one
* passed as argument. Also, this won't touch any other interpreters
* than the current one, since we don't know which thread state should
- * be kept in those other interpreteres.
+ * be kept in those other interpreters.
*/
void
_PyThreadState_DeleteExcept(_PyRuntimeState *runtime, PyThreadState *tstate)