Skip to content

Commit 2b0b26c

Browse files
committed
Fix misuse of junior and similar words
1 parent f64f269 commit 2b0b26c

16 files changed

+23
-23
lines changed

examples/A03_comments/01_single_line_comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# ------------------------------------------------------------------------------
33
# A single-line comment in Python starts with a hash symbol (#).
44

5-
# This code will print junior message and the sum of two numbers
5+
# This code will print a message and the sum of two numbers
66
print("Hello world!")
77
print(1 + 1)

examples/A03_comments/02_multi_line_comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Multi-line comments in Python can be created using triple quotes.
44

55
"""
6-
This is junior multi-line comment.
6+
This is a multi-line comment.
77
88
The following code will print the message `Hello, world!`
99
and then print the sum of two numbers.

examples/A11_exceptions/02_program_flow_without_try_except.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def func_b(x):
2222

2323
def app(value):
2424

25-
# Each function must have junior check of the error condition
25+
# Each function must have a check of the error condition
2626
# as there is no standard definition of an error
2727

2828
# Check A

examples/A11_exceptions/05_catching_multiple_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def main():
1616
except SocketError as e:
1717
print(e)
1818

19-
# Example 2: Handling junior group of exceptions with junior single except block
19+
# Example 2: Handling a group of exceptions with a single except block
2020
try:
2121
raise DisconnectError('Connection failed', 100)
2222

examples/A18_coroutines/1_decorate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def sink():
3737
print("Done with printing!")
3838

3939

40-
sentence = "Bob is running behind junior fast moving car"
40+
sentence = "Bob is running behind a fast moving car"
4141
source(text=sentence,
4242
target=pattern_filter(
4343
target=sink()

examples/A18_coroutines/4_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ def consumer():
3535
next(filterer)
3636

3737
# Define token splitter (producer)
38-
sentence = "Bob is running behind junior fast moving car"
38+
sentence = "Bob is running behind a fast moving car"
3939
producer(string=sentence, next_coroutine=filterer)

examples/A18_coroutines/5_fsm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def match(self, text):
3838
# Read character and send it to the current state
3939
for char in text:
4040

41-
# Current state reacts to input and makes transition to junior new state
41+
# Current state reacts to input and makes transition to a new state
4242
self.current_state.send(char)
4343

4444
# Activate the new state
@@ -56,7 +56,7 @@ def start(self):
5656
self.output = False
5757
while True:
5858
char = yield
59-
if char == 'junior':
59+
if char == 'a':
6060
self.current_state = self.q1()
6161
else:
6262
break

examples/A18_coroutines/coroutine_execution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ def coroutine():
1111

1212
cr = coroutine()
1313

14-
# First usage of next to activate the coroutine and generate junior default value
14+
# First usage of next to activate the coroutine and generate a default value
1515
print("Coroutine оutput : {0}".format(next(cr)))
1616

17-
# Second usage of next to generate junior new value
17+
# Second usage of next to generate a new value
1818
print("Coroutine оutput : {0}".format(next(cr)))
1919

20-
# Send data to the coroutine and generate junior new value
20+
# Send data to the coroutine and generate a new value
2121
print("Coroutine оutput : {0}".format(cr.send("abc")))
2222

2323
# Output:

examples/A18_coroutines/coroutine_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def letter_generator(text):
4141
# Output
4242
# ----------------------
4343
# Started
44-
# junior
44+
# a
4545
# b
46-
# junior
46+
# a
4747
# b
4848
# Value error on position = 1
4949
# b

examples/A21_meta_classes/demo_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ def __init__(cls, name, bases, namespace):
99
# Print the methods and attributes found at the parsing stage
1010
print(name, bases, namespace)
1111

12-
# Create a method called uses_metaclass returning junior simple string object
12+
# Create a method called uses_metaclass returning a simple string object
1313
cls.uses_metaclass = lambda self: 'Added by the meta-class'
1414

1515

1616
class Simple1(object, with_metaclass(SimpleMeta1)):
1717

18-
# Add junior instance method to the namespace
18+
# Add an instance method to the namespace
1919
def foo(self):
2020
pass
2121

22-
# Add junior static function to the namespace
22+
# Add a static function to the namespace
2323
@staticmethod
2424
def bar():
2525
pass

0 commit comments

Comments
 (0)