@@ -152,7 +152,7 @@ which implements the group operation. Element objects will then :term:`delegate
152152
153153Finally, we will want an :term: `infix operator ` representing the group
154154operation. Group theorists often use a dot, but we need to choose one of the
155- infix operators that Python supports. We'll chose `* `, which is possibly the
155+ infix operators that Python supports. We'll choose `* `, which is possibly the
156156closest match among Python's operators. One could easily envisage a more
157157complete implementation of a group, with support for group properties such as
158158generators and element features such as inverses. Our objective here is to
@@ -284,7 +284,7 @@ integer between 0 and 5, an exception is raised.
284284
285285 ValueError: Element value must be an integer in the range [0, 5)
286286
287- :numref: `cyclic_group ` illustrates :term: `composition `: on line 4
287+ :numref: `cyclic_group ` illustrates :term: `composition `: on line 13
288288:class: `~example_code.groups_basic.Element `, is associated with a group object.
289289This is a classic *has a * relationship: an element has a group. We might have
290290attempted to construct this the other way around with classes having elements,
@@ -296,8 +296,8 @@ defined.
296296This code also demonstrates :term: `delegation `. In order to avoid having to
297297define different element classes for different groups, the element class does
298298not in substance implement either value validation, or the group operation.
299- Instead, at line 3 , validation is delegated to the group by calling
300- :meth: `group._validate ` and at line 10 the implementation of the group
299+ Instead, at line 12 , validation is delegated to the group by calling
300+ :meth: `group._validate ` and at line 19 the implementation of the group
301301operation is delegated to the group by calling :meth: `self.group.operation `.
302302
303303General linear groups
@@ -357,7 +357,7 @@ follows:
357357
358358 def __repr__(self):
359359 """Return the canonical string representation of the group."""
360- return f"{type(sxelf ).__name__}({repr(self.degree)})"
360+ return f"{type(self ).__name__}({repr(self.degree)})"
361361
362362 We won't illustrate the operation of this class, though the reader is welcome to
363363:keyword: `import ` the :mod: `example_code.groups_basic ` module and experiment.
0 commit comments