[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Metoo :) Go ahead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6423 ___ ___ Python-bugs-list

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed in r74179 (trunk) and r74180 (py3k). Thanks! -- keywords: -needs review resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I rephrased the doc and removed has_key at all, fixed the rst markup for 'in' and improved a little the example. If the attached patch is ok I'll commit it. The py3 doc is slightly different, they should probably be the same (I prefer 'in'

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@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__,

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6423 ___ ___ Python-bugs-list

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Patch looks good and is ready to commit. Py3k seems to have been fixed already. -- assignee: georg.brandl - ezio.melotti nosy: +ezio.melotti resolution: - accepted ___ Python tracker

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-05 Thread Christoph Zwerschke
New submission from Christoph Zwerschke c...@online.de: The cgi.Fieldstorage class supports the __contains__ method since Py 2.2, but the documentation of Py 2.6 still only mentions the old fashioned has_key method. See patch. -- assignee: georg.brandl components: Documentation files: