[issue7771] dict view comparison methods are not documented
Terry J. Reedy
report at bugs.python.org
Fri Jan 29 21:58:02 CET 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
The 3.2a doc is unchanged (similarly lacking).
The situation is that view have all of the special method (operator methods) that frozen sets do but none of the named methods (.copy to .union). I think it would be helpful if the doc said so. Perhaps change
"Then these set operations are available ..."
to
"For set-like view, all of the syntax operations on sets (but none of the named methods, like set.copy,) are available ..."
I think
dictview < / <= / >= / > other:
same as corresponding operation with two sets
might be sufficient, but list all four is ok too.
----------
nosy: +tjreedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7771>
_______________________________________
More information about the Python-bugs-list
mailing list