Dec. 29, 2020
4:36 p.m.
On 30/12/20 11:20 am, Brendan Barnwell wrote:
So, to give an example, the iterator protocol should be documented right where the `for` statement is documented, and it should be explicitly framed as "this is the definition of what the `for` statement does",
Not sure about that -- there are other syntactic situations that use the iterator protocol, e.g. unpacking assignments. But there should at least be links to it from all the places it's used. -- Greg