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

2009-07-22 Thread Ezio Melotti
Ezio Melotti 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-22 Thread Georg Brandl
Georg Brandl added the comment: Metoo :) Go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

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

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

2009-07-21 Thread Ezio Melotti
Ezio Melotti 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' over '__contains__' and

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

2009-07-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2009-07-06 Thread Georg Brandl
Georg Brandl 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 : 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: cgi.patch keywor