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.
This commit is contained in:
parent
7b2f862823
commit
6db3207923
14
pep-0380.txt
14
pep-0380.txt
|
@ -182,14 +182,14 @@ except that, as currently, the exception cannot be caught by
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue