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