On Tue, Feb 18, 2020 at 11:47:16AM -0800, Ethan Furman wrote:

> Whatever `dict.items()` returns, both for consistency and because 
> `dict.items()` can become a simple alias for `dict.__items__`.

That means that every object wanting to make use of this protocol needs 
to create a complex set-like view object, which is neither easy nor 
obvious, and may not even be appropriate for some classes.



-- 
Steven
_______________________________________________
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/YZCK3XLRLV4G65EZGXQB5PU3IBA25TXP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to