Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 026a976

Browse files
committed
Exceptions
1 parent 0c8bdc6 commit 026a976

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ from functools import partial
13371337
LogicOp = Enum('LogicOp', {'AND': partial(lambda l, r: l and r),
13381338
'OR' : partial(lambda l, r: l or r)})
13391339
```
1340-
* **Another solution in this particular case is to use built-in functions `'and_'` and `'or_'` from the module [operator](#operator).**
1340+
* **Another solution in this particular case is to use built-in functions and\_() and or\_() from the module [operator](#operator).**
13411341

13421342

13431343
Exceptions
@@ -1420,7 +1420,7 @@ BaseException
14201420
+-- StopIteration # Raised by next() when run on an empty iterator.
14211421
+-- TypeError # Raised when an argument is of wrong type.
14221422
+-- ValueError # When an argument is of right type but inappropriate value.
1423-
+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.
1423+
+-- UnicodeError # Raised when encoding/decoding strings to/from bytes fails.
14241424
```
14251425

14261426
#### Collections and their exceptions:

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@
12661266
</code></pre></div>
12671267

12681268
<ul>
1269-
<li><strong>Another solution in this particular case is to use built-in functions <code class="python hljs"><span class="hljs-string">'and_'</span></code> and <code class="python hljs"><span class="hljs-string">'or_'</span></code> from the module <a href="#operator">operator</a>.</strong></li>
1269+
<li><strong>Another solution in this particular case is to use built-in functions and_() and or_() from the module <a href="#operator">operator</a>.</strong></li>
12701270
</ul>
12711271
<div><h2 id="exceptions"><a href="#exceptions" name="exceptions">#</a>Exceptions</h2><div><h3 id="basicexample">Basic Example</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">try</span>:
12721272
&lt;code&gt;
@@ -1334,7 +1334,7 @@
13341334
+-- StopIteration # Raised by next() when run on an empty iterator.
13351335
+-- TypeError # Raised when an argument is of wrong type.
13361336
+-- ValueError # When an argument is of right type but inappropriate value.
1337-
+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.
1337+
+-- UnicodeError # Raised when encoding/decoding strings to/from bytes fails.
13381338
</code></pre></div>
13391339

13401340
<div><h4 id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><code class="text language-text">+-----------+------------+------------+------------+

web/script_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const DIAGRAM_8_B =
183183
" ├── StopIteration <span class='hljs-comment'># Raised by next() when run on an empty iterator.</span>\n" +
184184
" ├── TypeError <span class='hljs-comment'># Raised when an argument is of wrong type.</span>\n" +
185185
" └── ValueError <span class='hljs-comment'># When an argument is of right type but inappropriate value.</span>\n" +
186-
" └── UnicodeError <span class='hljs-comment'># Raised when encoding/decoding strings from/to bytes fails.</span>\n";
186+
" └── UnicodeError <span class='hljs-comment'># Raised when encoding/decoding strings to/from bytes fails.</span>\n";
187187

188188
const DIAGRAM_9_A =
189189
'+------------------+--------------+--------------+--------------+\n' +

0 commit comments

Comments
 (0)