News for hackers. Stuff that matters.
Re:Strange line of Python by masklinn on Friday November 18, 2011 @07:24AM (#3251498)
Exactly, it's a nested iteration: the rightmost loop is just nested within the leftmost loop, so it's iterating on `states[(s,letter)]` for each value (s) of `state`.

The weirdest part, to me, is around that: it's surrounded by some sort of manual reduction, which changes the current `state` content by iterating over `word`.

There are no comments on this comment yet.