projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
806d1c8
)
Patch suggested by Hamish Lawson: add an __iter__() that returns
author
Guido van Rossum
<guido@python.org>
Wed, 11 Sep 2002 18:20:34 +0000
(18:20 +0000)
committer
Guido van Rossum
<guido@python.org>
Wed, 11 Sep 2002 18:20:34 +0000
(18:20 +0000)
iter(self.keys()).
Lib/cgi.py
patch
|
blob
|
history
diff --git
a/Lib/cgi.py
b/Lib/cgi.py
index 5f4bad3c8b6e126162c50bd72fad58774825ecba..cf0146f407274ee797cbd548daf8bbc404787420 100755
(executable)
--- a/
Lib/cgi.py
+++ b/
Lib/cgi.py
@@
-525,6
+525,9
@@
class FieldStorage:
return "FieldStorage(%s, %s, %s)" % (
`self.name`, `self.filename`, `self.value`)
+ def __iter__(self):
+ return iter(self.keys())
+
def __getattr__(self, name):
if name != 'value':
raise AttributeError, name