Skip to content

Commit 8522964

Browse files
committed
Read only meta tag, and minor fixes
1 parent f3c7afe commit 8522964

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ Now, just run `wtfpython` at the command line which will open this collection in
168168
### ▶ First things first!
169169
170170
<!-- Example ID: d3d73936-3cf1-4632-b5ab-817981338863 -->
171+
<!-- read-only -->
171172
172173
For some reasons, "Walrus" operator (`:=`) has become a very popular feature in the language. Let's check it out,
173174
@@ -220,7 +221,7 @@ SyntaxError: invalid syntax
220221
221222
222223
223-
####💡 Explanation
224+
#### 💡 Explanation
224225
225226
**Quick walrus operator refresher**
226227
@@ -1455,7 +1456,7 @@ def some_func(val):
14551456
14561457
14571458
### ▶ Yielding from... return!
1458-
1459+
<!-- Example ID: 5626d8ef-8802-49c2-adbc-7cda5c550816 --->
14591460
1\.
14601461
14611462
```py
@@ -1634,7 +1635,6 @@ But I thought tuples were immutable...
16341635
16351636
### ▶ The disappearing variable from outer scope
16361637
<!-- Example ID: 7f1e71b6-cb3e-44fb-aa47-87ef1b7decc8 --->
1637-
<!-- version-specific: True -->
16381638
16391639
```py
16401640
e = 7
@@ -1833,7 +1833,6 @@ a, b = a[b] = {}, 5
18331833
18341834
### ▶ Modifying a dictionary while iterating over it
18351835
<!-- Example ID: b4e5cdfb-c3a8-4112-bd38-e2356d801c41 --->
1836-
<!-- version-specific: True -->
18371836
```py
18381837
x = {0: None}
18391838
@@ -1870,7 +1869,7 @@ Yes, it runs for exactly **eight** times and stops.
18701869
18711870
### ▶ Stubborn `del` operation
18721871
<!-- Example ID: 777ed4fd-3a2d-466f-95e7-c4058e61d78e --->
1873-
<!-- read-only: True -->
1872+
<!-- read-only -->
18741873
18751874
```py
18761875
class SomeClass:
@@ -2065,7 +2064,6 @@ Where did element `3` go from the `numbers` list?
20652064
20662065
### ▶ Loop variables leaking out!
20672066
<!-- Example ID: ccec7bf6-7679-4963-907a-1cd8587be9ea --->
2068-
<!-- version-specific: True -->
20692067
1\.
20702068
```py
20712069
for x in range(7):
@@ -2607,7 +2605,7 @@ def similar_recursive_func(a):
26072605
26082606
### ▶ Wild imports
26092607
<!-- Example ID: 83deb561-bd55-4461-bb5e-77dd7f411e1c --->
2610-
<!-- read-only: True -->
2608+
<!-- read-only -->
26112609
26122610
```py
26132611
# File: module.py
@@ -2725,7 +2723,7 @@ if noon_time:
27252723
27262724
**Output (< 3.5):**
27272725
2728-
```sh
2726+
```py
27292727
('Time at noon is', datetime.time(12, 0))
27302728
```
27312729
The midnight time is not printed.
@@ -2763,7 +2761,6 @@ Sshh.. It's a super secret.
27632761
27642762
### ▶ `goto`, but why?
27652763
<!-- Example ID: 2aff961e-7fa5-4986-a18a-9e5894bd89fe --->
2766-
<!-- version-specific: True -->
27672764
27682765
```py
27692766
from goto import goto, label

0 commit comments

Comments
 (0)