File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3330,7 +3330,7 @@ \section{Handling Exceptions \label{handling}}
33303330... raise Exception('spam', 'eggs')
33313331... except Exception, inst:
33323332... print type(inst) # the exception instance
3333- ... print inst.args # arguments stored in .args
3333+ ... print inst.args # arguments stored in .args
33343334... print inst # __str__ allows args to printed directly
33353335... x, y = inst # __getitem__ allows args to be unpacked directly
33363336... print 'x =', x
@@ -4299,7 +4299,7 @@ \section{Generators\label{generators}}
42994299compact is that the \method {__iter__()} and \method {next()} methods are
43004300created automatically.
43014301
4302- Another other key feature is that the local variables and execution state
4302+ Another key feature is that the local variables and execution state
43034303are automatically saved between calls. This made the function easier to write
43044304and much more clear than an approach using class variables like
43054305\code {self.index} and \code {self.data}.
You can’t perform that action at this time.
0 commit comments