]> granicus.if.org Git - python/commitdiff
Merged revisions 85008,85011,85240 via svnmerge from
authorGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 09:33:55 +0000 (09:33 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 09:33:55 +0000 (09:33 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85008 | georg.brandl | 2010-09-25 15:30:03 +0200 (Sa, 25 Sep 2010) | 1 line

  #9944: fix typo.
........
  r85011 | georg.brandl | 2010-09-25 18:56:36 +0200 (Sa, 25 Sep 2010) | 1 line

  #9562: slight clarification.
........
  r85240 | georg.brandl | 2010-10-06 07:08:32 +0200 (Mi, 06 Okt 2010) | 1 line

  #10034: import readline in longer example.
........

Doc/library/itertools.rst
Doc/library/readline.rst
Doc/library/stdtypes.rst

index d25819b4e3b3a2651074d6daa46f9d4f44ddab3b..de464628a8a8f954aa6bf54f3055902ed1398995 100644 (file)
@@ -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):
index 9a7e940646b2e31809a1f23a915a9eaa04644bf4..f6e855e295da3b1e7801b0141e1f6da555dfc256 100644 (file)
@@ -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)
index 286210482624c823f3689ac67c69e8d040c9674c..8dc36bc9009f4c9f7728a0b215f23df9355bd310 100644 (file)
@@ -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)``.