You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1340,8 +1340,8 @@ class <enum_name>(Enum):
1340
1340
<member_name>=<value># Values don't have to be hashable.
1341
1341
<member_name>=<value>, <value># Tuple can be used for multiple values.
1342
1342
```
1343
-
***Accessing a member named after a reserved keyword causes SyntaxError.**
1344
1343
***Methods receive the member they were called on as the 'self' argument.**
1344
+
***Accessing a member named after a reserved keyword causes SyntaxError.**
1345
1345
1346
1346
```python
1347
1347
<member>=<enum>.<member_name># Returns a member.
@@ -1402,8 +1402,7 @@ finally:
1402
1402
```
1403
1403
***Code inside the `'else'` block will only be executed if `'try'` block had no exceptions.**
1404
1404
***Code inside the `'finally'` block will always be executed (unless a signal is received).**
1405
-
***All variables that are initialized in executed blocks are also visible in all subsequent blocks
1406
-
, as well as outside the try statement (only function block delimits scope).**
1405
+
***All variables that are initialized in executed blocks are also visible in all subsequent blocks, as well as outside the try statement (only function block delimits scope).**
1407
1406
***To catch signals use `'signal.signal(signal_number, <func>)'`.**
Copy file name to clipboardExpand all lines: index.html
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1145,8 +1145,8 @@
1145
1145
<member_name> = <value>, <value> <spanclass="hljs-comment"># Tuple can be used for multiple values.</span>
1146
1146
</code></pre>
1147
1147
<ul>
1148
-
<li><strong>Accessing a member named after a reserved keyword causes SyntaxError.</strong></li>
1149
1148
<li><strong>Methods receive the member they were called on as the 'self' argument.</strong></li>
1149
+
<li><strong>Accessing a member named after a reserved keyword causes SyntaxError.</strong></li>
1150
1150
</ul>
1151
1151
<pre><codeclass="python language-python hljs"><member> = <enum>.<member_name> <spanclass="hljs-comment"># Returns a member.</span>
1152
1152
<member> = <enum>[<spanclass="hljs-string">'<member_name>'</span>] <spanclass="hljs-comment"># Returns a member. Raises KeyError.</span>
@@ -1193,8 +1193,7 @@
1193
1193
<ul>
1194
1194
<li><strong>Code inside the <codeclass="python hljs"><spanclass="hljs-string">'else'</span></code> block will only be executed if <codeclass="python hljs"><spanclass="hljs-string">'try'</span></code> block had no exceptions.</strong></li>
1195
1195
<li><strong>Code inside the <codeclass="python hljs"><spanclass="hljs-string">'finally'</span></code> block will always be executed (unless a signal is received).</strong></li>
1196
-
<li><strong>All variables that are initialized in executed blocks are also visible in all subsequent blocks
1197
-
, as well as outside the try statement (only function block delimits scope).</strong></li>
1196
+
<li><strong>All variables that are initialized in executed blocks are also visible in all subsequent blocks, as well as outside the try statement (only function block delimits scope).</strong></li>
1198
1197
<li><strong>To catch signals use <codeclass="python hljs"><spanclass="hljs-string">'signal.signal(signal_number, <func>)'</span></code>.</strong></li>
0 commit comments