File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -869,7 +869,7 @@ Generators
869869:term: `Generator `\s are a simple and powerful tool for creating iterators. They
870870are written like regular functions but use the :keyword: `yield ` statement
871871whenever they want to return data. Each time :func: `next ` is called on it, the
872- generator resumes where it left- off (it remembers all the data values and which
872+ generator resumes where it left off (it remembers all the data values and which
873873statement was last executed). An example shows that generators can be trivially
874874easy to create::
875875
@@ -887,7 +887,7 @@ easy to create::
887887 o
888888 g
889889
890- Anything that can be done with generators can also be done with class based
890+ Anything that can be done with generators can also be done with class- based
891891iterators as described in the previous section. What makes generators so
892892compact is that the :meth: `__iter__ ` and :meth: `~generator.__next__ ` methods
893893are created automatically.
You can’t perform that action at this time.
0 commit comments