[issue6423] The cgi docs should advertize using "in" instead of "has_key"
R. David Murray
report at bugs.python.org
Wed Jul 22 05:28:01 CEST 2009
R. David Murray <rdmurray at bitdance.com> added the comment:
Your patch looks good. I was going to opine that mentioning
__contains__ was good because it would lead the reader to understand how
'in' is supported, but since the len function is referenced but that
doesn't let you learn about __len__, you might as well be consistent and
talk about in and not __contains__. So I'd vote for changing the 3.x
docs to match.
I agree with you about the example.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6423>
_______________________________________
More information about the Python-bugs-list
mailing list