« * K @mvsamuel.bsky.social

Mike Samuel 🟣 @mvsamuel.bsky.social

2026-11-25 23:05 UTC

Python was one of the first big languages to let you `yield` values from a function, letting you create streams of values via a generator function that other code can consume in a loop. But generators can hold resources, e.g. you can yield lines from a file handle. youtu.be/VfsQp81ge9E

Link: Comparative linguistics: generator co-routine lifecycles in JS and Py (youtu.be/VfsQp81ge9E)

A reply in a thread.

1 likes, 0 reposts, 1 replies

3 Next post4 More from @mvsamuel.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup