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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EY4XFLEY3U2ZB5L6IRVX7RSCZBARE6OH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to