[issue40890] Dict views should be introspectable
Dennis Sweeney
report at bugs.python.org
Sun Jun 7 02:20:51 EDT 2020
Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:
I'd be happy to write a PR.
Method names could be "mapping", "target", "target_mapping", "target_dict", "referent_dict", etc.
I like the choice of "target_mapping":
d = dict()
assert d is d.keys().target_mapping
assert d is d.values().target_mapping
assert d is d.items().target_mapping
----------
nosy: +Dennis Sweeney
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40890>
_______________________________________
More information about the Python-bugs-list
mailing list