From: Andrew M. Kuchling Date: Fri, 3 Oct 2008 16:42:52 +0000 (+0000) Subject: Typo fix X-Git-Tag: v2.7a1~2783 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=081bb457ab1f84beaed7c73754c32b87b06a3d40;p=thirdparty%2FPython%2Fcpython.git Typo fix --- diff --git a/Doc/whatsnew/2.2.rst b/Doc/whatsnew/2.2.rst index 4cf1438c81a9..138329830a21 100644 --- a/Doc/whatsnew/2.2.rst +++ b/Doc/whatsnew/2.2.rst @@ -714,7 +714,7 @@ Python's division operator, ``/``, behaves like C's division operator when presented with two integer arguments: it returns an integer result that's truncated down when there would be a fractional part. For example, ``3/2`` is 1, not 1.5, and ``(-1)/2`` is -1, not -0.5. This means that the results of -divison can vary unexpectedly depending on the type of the two operands and +division can vary unexpectedly depending on the type of the two operands and because Python is dynamically typed, it can be difficult to determine the possible types of the operands. diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py index 16749610140b..ff00d8b0b0da 100644 --- a/Lib/test/test_datetime.py +++ b/Lib/test/test_datetime.py @@ -253,7 +253,7 @@ class TestTimeDelta(HarmlessMixedComparison, unittest.TestCase): self.assertRaises(TypeError, lambda: a // x) self.assertRaises(TypeError, lambda: x // a) - # Divison of int by timedelta doesn't make sense. + # Division of int by timedelta doesn't make sense. # Division by zero doesn't make sense. for zero in 0, 0L: self.assertRaises(TypeError, lambda: zero // a)