Loop targets

from blog Ned Batchelder's blog, | ↗ original
↗ original
I posted a Python tidbit about how for loops can assign to other things than simple variables, and many people were surprised or even concerned:params = { "query": QUERY, "page_size": 100, } # Get page=0, page=1, page=2, ... for params["page"] in itertools.count(): data = requests.get(SEARCH_URL, params).json()...