]> granicus.if.org Git - python/commitdiff
Fix typos in code comment and documentation
authorMartin Panter <vadmium+py@gmail.com>
Sat, 16 Apr 2016 09:28:57 +0000 (09:28 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 16 Apr 2016 09:28:57 +0000 (09:28 +0000)
Doc/library/argparse.rst
Doc/whatsnew/2.4.rst
Lib/posixpath.py
Modules/_io/bytesio.c

index c7b8cb78ac1e8e3fcb4d406555297c7c9925c97e..2ea4b8363d508b24b1dddec48e3a35d0a0324033 100644 (file)
@@ -878,7 +878,7 @@ the various :class:`ArgumentParser` actions.  The two most common uses of it are
   See the nargs_ description for examples.
 
 With the ``'store_const'`` and ``'append_const'`` actions, the ``const``
-keyword argument must be given.  For other actions, is defaults to ``None``.
+keyword argument must be given.  For other actions, it defaults to ``None``.
 
 
 default
index 00a996dcf907d2b866faa9bebf4e8ed045d2c325..5555e7dd47198f11ba3214767bd6336c48c4cb08 100644 (file)
@@ -1481,7 +1481,7 @@ Some of the changes to Python's build process and to the C API are:
 
 * Python can now be built with additional profiling for the interpreter itself,
   intended as an aid to people developing the Python core.  Providing
-  :option:`----enable-profiling` to the :program:`configure` script will let you
+  :option:`--enable-profiling` to the :program:`configure` script will let you
   profile the interpreter with :program:`gprof`, and providing the
   :option:`--with-tsc` switch enables profiling using the Pentium's Time-Stamp-
   Counter register.  Note that the :option:`--with-tsc` switch is slightly
index 6578481f7b4923e8bf913025732f4e55baaf2151..8f928225e0191effb56d51d79793560f4e695fac 100644 (file)
@@ -375,7 +375,7 @@ symbolic links encountered in the path."""
     path, ok = _joinrealpath('', filename, {})
     return abspath(path)
 
-# Join two paths, normalizing ang eliminating any symbolic links
+# Join two paths, normalizing and eliminating any symbolic links
 # encountered in the second path.
 def _joinrealpath(path, rest, seen):
     if isabs(rest):
index 82f3851ea4cf61ce4e29793f2133e31267695c05..d5752362725b0fd7b61977a6a35a12ee5523e566 100644 (file)
@@ -395,7 +395,7 @@ PyDoc_STRVAR(readinto_doc,
 "readinto(bytearray) -> int.  Read up to len(b) bytes into b.\n"
 "\n"
 "Returns number of bytes read (0 for EOF), or None if the object\n"
-"is set not to block as has no data to read.");
+"is set not to block and has no data to read.");
 
 static PyObject *
 bytesio_readinto(bytesio *self, PyObject *args)