summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/library/itertools.rst2
-rw-r--r--Doc/library/readline.rst1
-rw-r--r--Doc/library/stdtypes.rst2
3 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index d25819b4e3..de464628a8 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -677,7 +677,7 @@ which incur interpreter overhead.
# feed the entire iterator into a zero-length deque
collections.deque(iterator, maxlen=0)
else:
- # advance to the emtpy slice starting at position n
+ # advance to the empty slice starting at position n
next(islice(iterator, n, n), None)
def nth(iterable, n, default=None):
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst
index 9a7e940646..f6e855e295 100644
--- a/Doc/library/readline.rst
+++ b/Doc/library/readline.rst
@@ -210,6 +210,7 @@ normally be executed automatically during interactive sessions from the user's
:envvar:`PYTHONSTARTUP` file. ::
import os
+ import readline
histfile = os.path.join(os.environ["HOME"], ".pyhist")
try:
readline.read_history_file(histfile)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 2862104826..8dc36bc900 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2101,7 +2101,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
existing keys. Return ``None``.
:func:`update` accepts either another dictionary object or an iterable of
- key/value pairs (as a tuple or other iterable of length two). If keyword
+ key/value pairs (as tuples or other iterables of length two). If keyword
arguments are specified, the dictionary is then updated with those
key/value pairs: ``d.update(red=1, blue=2)``.