Simple Dictionary Question
Ken Seehof
kens at sightreader.com
Fri May 4 16:52:57 EDT 2001
You need to include more of your script (maybe the whole thing).
There is no clue about what v is supposed to be, or what i is
supposed to be, or what the script is trying to do.
BTW, I've got this DNA analysis script with the line:
x = z+5
But the protein synthesis algorithm doesn't handle guanine correctly.
Why? (:-))
- Ken
----- Original Message -----
From: "Ben Ocean" <zope at thewebsons.com>
To: <python-list at python.org>
Sent: Friday, May 04, 2001 11:59 AM
Subject: Simple Dictionary Question
> Hi;
> I have this in a cgi script:
> >>>
> if form.has_key("token"):
> if i == "bladename":
> bladename = v
> if i == "bladephone":
> bladephone = v
> if i == "bladeemail":
> bladeemail = v
> if i == "token":
> token = v
> <<<
> Now, if the form has *token* it may have the others; if the others are
> present *token* will be as well. For some reason if mare than key *token*
> is present, the whole thing falls apart and all the values get set to
None.
> Why?
> TIA,
> BenO
More information about the Python-list
mailing list