A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-September/028732.html below:

[Python-Dev] Patch to make cgi.FieldStorage iterate over its keys

[Python-Dev] Patch to make cgi.FieldStorage iterate over its keys [Python-Dev] Patch to make cgi.FieldStorage iterate over its keysHamish Lawson hbl@st-andrews.ac.uk
Wed, 11 Sep 2002 19:18:02 +0100
Below is a patch to make cgi.FieldStorage iterate over its keys, allowing 
it to behave like any other dictionary in this kind of construct:

     form = cgi.FieldStorage()
     for key in form:
         do something ...


Hamish Lawson


---
Compare: (<)E:\Python22\Lib\cgi.py (34894 bytes)
    with: (>)E:\temp\cgi.py (34955 bytes)

524a524,526
 >     def __iter__(self):
 >         return iter(self.keys())
 >




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4