On 18/02/2020 19:43, Soni L. wrote:
It'd be nice to have a __valid_getitem_requests__ protocol that, if
present, yields pairs such that:
for key, value in items(obj):
assert obj[key] == value
for any obj.
OK, I'll bite. What is this "items()" function you apply to the
arbitrary object?
--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/XFDXBFSDQC6BELVFHKPLQEZ5ERBRO545/
Code of Conduct: http://python.org/psf/codeofconduct/