PEP 475: Fix Hello World example
This commit is contained in:
parent
b09ad926df
commit
5de74637f3
|
@ -99,8 +99,9 @@ example?
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
print("Hello World")
|
print("Hello World")
|
||||||
|
break
|
||||||
except InterruptedError:
|
except InterruptedError:
|
||||||
pass
|
continue
|
||||||
|
|
||||||
``InterruptedError`` can happen in unexpected places. For example,
|
``InterruptedError`` can happen in unexpected places. For example,
|
||||||
``os.close()`` and ``FileIO.close()`` can raises ``InterruptedError``:
|
``os.close()`` and ``FileIO.close()`` can raises ``InterruptedError``:
|
||||||
|
|
Loading…
Reference in New Issue