Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-10-10 20:13:24 EDT

Explore

PostsPeople
LatestRanked
@bterwijn.bsky.socialSep 22, 2026, 3:08 PM

How does ๐—Ÿ๐—ฎ๐˜‡๐˜† ๐—˜๐˜ƒ๐—ฎ๐—น๐˜‚๐—ฎ๐˜๐—ถ๐—ผ๐—ป work in Python?

In this example: memory-graph.com#codeurl=http...
we show a sink reading from different sources, some eager some lazy, using the Iterator Protocol, where ๐ฆ๐ž๐ฆ๐จ๐ซ๐ฒ_๐ ๐ซ๐š๐ฉ๐ก shows what's really going on.

#PythonDev #memory_graph #LazyEvaluation #IteratorProtocol

@bterwijn.bsky.socialSep 17, 2026, 10:13 AM

How do Python for-loops work?

Using the Iterator Protocol:

๐‘–๐‘ก๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘œ๐‘Ÿ = ๐‘–๐‘ก๐‘’๐‘Ÿ(๐‘๐‘œ๐‘›๐‘ก๐‘Ž๐‘–๐‘›๐‘’๐‘Ÿ)
๐‘คโ„Ž๐‘–๐‘™๐‘’ ๐‘‡๐‘Ÿ๐‘ข๐‘’:
..๐‘ก๐‘Ÿ๐‘ฆ:
....๐‘ฃ๐‘Ž๐‘™๐‘ข๐‘’ = ๐‘›๐‘’๐‘ฅ๐‘ก(๐‘–๐‘ก๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘œ๐‘Ÿ)
....๐‘๐‘Ÿ๐‘–๐‘›๐‘ก(๐‘ฃ๐‘Ž๐‘™๐‘ข๐‘’)
..๐‘’๐‘ฅ๐‘๐‘’๐‘๐‘ก ๐‘†๐‘ก๐‘œ๐‘๐ผ๐‘ก๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘–๐‘œ๐‘›:
....๐‘๐‘Ÿ๐‘’๐‘Ž๐‘˜

A Linked_List example: memory-graph.com#codeurl=http...

#PythonDev #memory_graph #Iterator #IteratorProtocol