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