PEP 475: Fix Hello World example

This commit is contained in:
Victor Stinner 2014-07-24 22:33:23 +02:00
parent b09ad926df
commit 5de74637f3
1 changed files with 2 additions and 1 deletions

View File

@ -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``: