Improving grammar snippets in Python docs (90)

Опубликовано: 14 Июнь 2026
на канале: encukou
9
0

Join on Discord:   / discord  

Rough timestamps:

0:04:00 come up with an example of a simple comprehension and explain what happens in the simple case. Later we will do the complex.
0:20:00 describe filtering
0:24:00 Finished the simple comprehensions. Now we start with the complex.
is there a rST for highlighting source code? It would make it easier for people who want to copy and paste examples.
0:29:30 Unpacking in comprehensions.
0:40:30 Dict unpacking.
1:03.00 Filtering in comprehensions
TODO: Formal grammar for comprehension.
What about types?!?
Aaargh: 3.3.7.1 is wrong, it was written before custom types and should be rewritten to refer to builtin types.
1:14:00 Formal grammar for comprehensions.
1:18:00 bio break (find some lounge music to keep the room warm)

License: CC-BY-SA 4.0: https://creativecommons.org/licenses/...
Illustration photo in thumbnail by Ben Skála, Benfoto: https://commons.wikimedia.org/wiki/Fi...