cgi.FieldStorage()
Peter Bittner
bittneph at aston.ac.uk
Thu Mar 16 07:08:22 EST 2000
Consider the following code:
cgiData = cgi.FieldStorage()
if cgiData.has_key('mode'):
del cgiData['mode']
The del statement raises an error.
Usually this code should work, because one can handle cgiData as a
simple dictionary, but unfortunately it's not simple as that.
cgiData is not a simple dictionary, but something object like that:
FieldStorage(None, None, [...])
How can I nevertheless delete a key:value pair from cgiData??
(Do I have to convert it all to a normal dictionary?? How?)
Please email any suggestion to: bittneph at aston.ac.uk !!
Cheers,
Peter
| Peter H. Bittner
| International Student at Aston University
| e-mail: bittneph at aston.ac.uk
| web: http://beam.to/bimbo
+--------------------------
More information about the Python-list
mailing list