diff options
author | Raymond Hettinger <python@rcn.com> | 2003-07-15 23:16:01 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-07-15 23:16:01 (GMT) |
commit | b233e5440952ea56e8120dac62d749062af6fdfe (patch) | |
tree | 4303a84059b20201f276a5e0e881f6b4ec2af558 | |
parent | edd07737d70f9021d90f3990fd7f527aa9a54e48 (diff) | |
download | cpython-b233e5440952ea56e8120dac62d749062af6fdfe.zip cpython-b233e5440952ea56e8120dac62d749062af6fdfe.tar.gz cpython-b233e5440952ea56e8120dac62d749062af6fdfe.tar.bz2 |
Nits.
-rw-r--r-- | Doc/tut/tut.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index cffbf23..659ffb7 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -3330,7 +3330,7 @@ be accessed or printed directly without having to reference \code{.args}. ... raise Exception('spam', 'eggs') ... except Exception, inst: ... print type(inst) # the exception instance -... print inst.args # arguments stored in .args +... print inst.args # arguments stored in .args ... print inst # __str__ allows args to printed directly ... x, y = inst # __getitem__ allows args to be unpacked directly ... print 'x =', x @@ -4299,7 +4299,7 @@ iterators as described in the previous section. What makes generators so compact is that the \method{__iter__()} and \method{next()} methods are created automatically. -Another other key feature is that the local variables and execution state +Another key feature is that the local variables and execution state are automatically saved between calls. This made the function easier to write and much more clear than an approach using class variables like \code{self.index} and \code{self.data}. |