diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-26 06:03:33 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-26 06:03:33 (GMT) |
commit | f157982b2c66be30d94a3f3ce0dfc2d9ebd3bd19 (patch) | |
tree | 39c71ffdf07566b30f7dc3a64c0b76e99be6240a /Lib | |
parent | 3e04d5b3068ac67cc01a32b1d5a51ac79c9df5a1 (diff) | |
download | cpython-f157982b2c66be30d94a3f3ce0dfc2d9ebd3bd19.zip cpython-f157982b2c66be30d94a3f3ce0dfc2d9ebd3bd19.tar.gz cpython-f157982b2c66be30d94a3f3ce0dfc2d9ebd3bd19.tar.bz2 |
Issue #27076: More doc and comment spelling fixes for 3.6, by Ville Skyttä
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/statistics.py | 4 | ||||
-rw-r--r-- | Lib/test/test_itertools.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py index fc0c3d2..b081b5a 100644 --- a/Lib/statistics.py +++ b/Lib/statistics.py @@ -430,9 +430,9 @@ def median_grouped(data, interval=1): L = float(x) - float(interval)/2 # Uses bisection search to search for x in data with log(n) time complexity - # Find the position of leftmost occurence of x in data + # Find the position of leftmost occurrence of x in data l1 = _find_lteq(data, x) - # Find the position of rightmost occurence of x in data[l1...len(data)] + # Find the position of rightmost occurrence of x in data[l1...len(data)] # Assuming always l1 <= l2 l2 = _find_rteq(data, l1, x) cf = l1 diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 3bbfdf1..945c58d 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -635,7 +635,7 @@ class TestBasicOps(unittest.TestCase): # Mode 0 is efficient. It uses an incompletely consumed input # iterator to build a cycle object and then passes in state with # a list of previously consumed values. There is no data - # overlap bewteen the two. + # overlap between the two. c = cycle('defg') c.__setstate__((list('abc'), 0)) self.assertEqual(take(20, c), list('defgabcdefgabcdefgab')) |