From: Georg Brandl Date: Thu, 20 Sep 2007 08:44:59 +0000 (+0000) Subject: alternate -> alternative. X-Git-Tag: v2.6a1~1261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d242eef748de2a48e171decce4a1ed73d079f32;p=python alternate -> alternative. --- diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 2dcd44572b..3cbf0919a4 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -984,7 +984,7 @@ method. For example, ``C.exp(x)`` is equivalent to The usual approach to working with decimals is to create :class:`Decimal` instances and then apply arithmetic operations which take place within the -current context for the active thread. An alternate approach is to use context +current context for the active thread. An alternative approach is to use context methods for calculating within a specific context. The methods are similar to those for the :class:`Decimal` class and are only briefly recounted here. diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 9c302affe6..beca1be342 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -250,7 +250,7 @@ having to load the entire file in memory. Only complete lines will be returned. >>> f.readlines() ['This is the first line of the file.\n', 'Second line of the file\n'] -An alternate approach to reading lines is to loop over the file object. This is +An alternative approach to reading lines is to loop over the file object. This is memory efficient, fast, and leads to simpler code:: >>> for line in f: