File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def test_use_pass_for_iterations_with_no_body(self):
94
94
# ------------------------------------------------------------------
95
95
96
96
def test_all_iteration_methods_work_on_any_sequence_not_just_lists (self ):
97
- # Ranges are an iteratable sequence
97
+ # Ranges are an iterable sequence
98
98
result = map (self .add_ten , range (1 , 4 ))
99
99
self .assertEqual (__ , list (result ))
100
100
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def test_matching_literal_text_how_many(self):
30
30
"""
31
31
Lesson 1 -- How many matches?
32
32
33
- The default behaviour of most regular extression engines is
33
+ The default behaviour of most regular expression engines is
34
34
to return just the first match. In python you have the
35
35
following options:
36
36
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def test_double_list_comprehension(self):
46
46
def test_creating_a_set_with_set_comprehension (self ):
47
47
comprehension = { x for x in 'aabbbcccc' }
48
48
49
- self .assertEqual (__ , comprehension ) # remeber that set members are unique
49
+ self .assertEqual (__ , comprehension ) # remember that set members are unique
50
50
51
51
def test_creating_a_dictionary_with_dictionary_comprehension (self ):
52
52
dict_of_weapons = {'first' : 'fear' , 'second' : 'surprise' ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def test_map_transforms_elements_of_a_list(self):
41
41
42
42
self .assertNotEqual (list , mapping .__class__ )
43
43
self .assertEqual (__ , mapping .__class__ )
44
- # In Python 3 built in iterator funcs return iteratable view objects
44
+ # In Python 3 built in iterator funcs return iterable view objects
45
45
# instead of lists
46
46
47
47
for item in mapping :
@@ -116,7 +116,7 @@ def test_use_pass_for_iterations_with_no_body(self):
116
116
# ------------------------------------------------------------------
117
117
118
118
def test_all_iteration_methods_work_on_any_sequence_not_just_lists (self ):
119
- # Ranges are an iteratable sequence
119
+ # Ranges are an iterable sequence
120
120
result = map (self .add_ten , range (1 ,4 ))
121
121
self .assertEqual (__ , list (result ))
122
122
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def test_matching_literal_text_how_many(self):
22
22
"""
23
23
Lesson 1 How many matches?
24
24
25
- The default behaviour of most regular extression engines is to return just the first match.
25
+ The default behaviour of most regular expression engines is to return just the first match.
26
26
In python you have the next options:
27
27
28
28
match() --> Determine if the RE matches at the beginning of the string.
@@ -92,7 +92,7 @@ def test_matching_set_character(self):
92
92
def test_anything_but_matching (self ):
93
93
"""
94
94
Lesson 2 Using character set ranges
95
- Occsionally , you'll want a list of characters that you don't want to match.
95
+ Occasionally , you'll want a list of characters that you don't want to match.
96
96
Character sets can be negated using the ^ metacharacter.
97
97
98
98
"""
You can’t perform that action at this time.
0 commit comments