[Python-checkins] r88667 - peps/trunk/pep-0380.txt
brett.cannon
python-checkins at python.org
Sun Feb 27 06:57:51 CET 2011
Author: brett.cannon
Date: Sun Feb 27 06:57:51 2011
New Revision: 88667
Log:
Indent a literal block some more so that it is picked up as a literal block and not just as a paragraph in a numbered list.
Modified:
peps/trunk/pep-0380.txt
Modified: peps/trunk/pep-0380.txt
==============================================================================
--- peps/trunk/pep-0380.txt (original)
+++ peps/trunk/pep-0380.txt Sun Feb 27 06:57:51 2011
@@ -182,14 +182,14 @@
3. The StopIteration exception behaves as though defined thusly::
- class StopIteration(Exception):
+ class StopIteration(Exception):
- def __init__(self, *args):
- if len(args) > 0:
- self.value = args[0]
- else:
- self.value = None
- Exception.__init__(self, *args)
+ def __init__(self, *args):
+ if len(args) > 0:
+ self.value = args[0]
+ else:
+ self.value = None
+ Exception.__init__(self, *args)
Rationale
More information about the Python-checkins
mailing list