diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-21 20:27:01 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-21 20:27:01 (GMT) |
commit | 3e4caeb3bf2b2579861e9f3379e3508fbb30549c (patch) | |
tree | 05385e9530059fe3608194b2e8d6f9e57d797220 /Doc/tutorial | |
parent | a12a86e956f949bd145cef247a95ed742386c70b (diff) | |
download | cpython-3e4caeb3bf2b2579861e9f3379e3508fbb30549c.zip cpython-3e4caeb3bf2b2579861e9f3379e3508fbb30549c.tar.gz cpython-3e4caeb3bf2b2579861e9f3379e3508fbb30549c.tar.bz2 |
Issue #5341: Fix a variety of spelling errors.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/classes.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/datastructures.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/floatingpoint.rst | 4 | ||||
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/stdlib.rst | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 48c7bcb..939126e 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -470,7 +470,7 @@ arguments)``. This is occasionally useful to clients as well. (Note that this only works if the base class is defined or imported directly in the global scope.) -Python has two builtin functions that work with inheritance: +Python has two built-in functions that work with inheritance: * Use :func:`isinstance` to check an object's type: ``isinstance(obj, int)`` will be ``True`` only if ``obj.__class__`` is :class:`int` or some class diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 2cc1e60..0b7d7bc 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -308,7 +308,7 @@ A more verbose version of this snippet shows the flow explicitly:: print row[i], print -In real world, you should prefer builtin functions to complex flow statements. +In real world, you should prefer built-in functions to complex flow statements. The :func:`zip` function would do a great job for this use case:: >>> zip(*mat) diff --git a/Doc/tutorial/floatingpoint.rst b/Doc/tutorial/floatingpoint.rst index cb3009b..29c7a66 100644 --- a/Doc/tutorial/floatingpoint.rst +++ b/Doc/tutorial/floatingpoint.rst @@ -65,7 +65,7 @@ display :: >>> 0.1 0.1000000000000000055511151231257827021181583404541015625 -instead! The Python prompt uses the builtin :func:`repr` function to obtain a +instead! The Python prompt uses the built-in :func:`repr` function to obtain a string version of everything it displays. For floats, ``repr(float)`` rounds the true decimal value to 17 significant digits, giving :: @@ -81,7 +81,7 @@ thing in all languages that support your hardware's floating-point arithmetic (although some languages may not *display* the difference by default, or in all output modes). -Python's builtin :func:`str` function produces only 12 significant digits, and +Python's built-in :func:`str` function produces only 12 significant digits, and you may wish to use that instead. It's unusual for ``eval(str(x))`` to reproduce *x*, but the output may be more pleasant to look at:: diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 34d984a..b1bc522 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -187,7 +187,7 @@ notation.:: This is particularly useful in combination with the new built-in :func:`vars` function, which returns a dictionary containing all local variables. -For a complete overview of string formating with :meth:`str.format`, see +For a complete overview of string formatting with :meth:`str.format`, see :ref:`formatstrings`. diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index 8cd5d0a..c0c7da3 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -21,12 +21,12 @@ operating system:: >>> os.chdir('/server/accesslogs') Be sure to use the ``import os`` style instead of ``from os import *``. This -will keep :func:`os.open` from shadowing the builtin :func:`open` function which +will keep :func:`os.open` from shadowing the built-in :func:`open` function which operates much differently. .. index:: builtin: help -The builtin :func:`dir` and :func:`help` functions are useful as interactive +The built-in :func:`dir` and :func:`help` functions are useful as interactive aids for working with large modules like :mod:`os`:: >>> import os |