Files
openide/python/python-community-ide-resources/resources/tips/Surround.html
T

15 lines
542 B
HTML

<html>
<head>
<link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body>
<p>
When you want to catch exceptions thrown by some code fragment,
select it in the editor, press <span class="shortcut">&shortcut:SurroundWith;</span>
(<span class="control">Code | Surround With</span>) and choose <span class="control">try/except</span>.
This will automatically generate the except clause.</p>
<p class="image">
<img src="images/try_except.png" alt="surround"/></p>
</body>
</html>