summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-08-30 20:21:19 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-08-30 20:21:19 (GMT)
commit39d87b54715197ca9dcb6902bb43461c0ed701a2 (patch)
tree778362acb785069882291e2e39f64fd395d73889 /Doc
parent15119bc2a7e902ae1c6988556c3bef3de87fa789 (diff)
downloadcpython-39d87b54715197ca9dcb6902bb43461c0ed701a2.zip
cpython-39d87b54715197ca9dcb6902bb43461c0ed701a2.tar.gz
cpython-39d87b54715197ca9dcb6902bb43461c0ed701a2.tar.bz2
Fix typos mostly in comments, docs and test names (GH-15209)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/init_config.rst2
-rw-r--r--Doc/library/importlib.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst
index 72bd8c3..c198df3 100644
--- a/Doc/c-api/init_config.rst
+++ b/Doc/c-api/init_config.rst
@@ -876,7 +876,7 @@ Path Configuration
If at least one "output field" is not set, Python computes the path
configuration to fill unset fields. If
:c:member:`~PyConfig.module_search_paths_set` is equal to 0,
-:c:member:`~PyConfig.module_search_paths` is overriden and
+:c:member:`~PyConfig.module_search_paths` is overridden and
:c:member:`~PyConfig.module_search_paths_set` is set to 1.
It is possible to completely ignore the function computing the default
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 8be6172..0976360 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -1379,8 +1379,8 @@ an :term:`importer`.
bytecode file. An empty string represents no optimization, so
``/foo/bar/baz.py`` with an *optimization* of ``''`` will result in a
bytecode path of ``/foo/bar/__pycache__/baz.cpython-32.pyc``. ``None`` causes
- the interpter's optimization level to be used. Any other value's string
- representation being used, so ``/foo/bar/baz.py`` with an *optimization* of
+ the interpreter's optimization level to be used. Any other value's string
+ representation is used, so ``/foo/bar/baz.py`` with an *optimization* of
``2`` will lead to the bytecode path of
``/foo/bar/__pycache__/baz.cpython-32.opt-2.pyc``. The string representation
of *optimization* can only be alphanumeric, else :exc:`ValueError` is raised.