Newbie: A very basic problem related to cgi.py
Ali
ali.jan at gmail.com
Mon Dec 20 10:09:54 EST 2004
>1. When you tried "import cgi.py" from the interactive prompt,
>was that really what you typed? Because that's not a valid
>import statement for the cgi module. You should have done
>"import cgi" instead.
import cgi was giving me the same error, because it was importing from
the cgi.pyc?
>3. There's something strange about that traceback, I
>think. Why does it show the doc-string for the module,
>and why does it show a comment after the "line 6" line?
>Did you hand-edit this before posting it?
nope, i didn't edit anything...
> maybe of the forehead-slapping kind.
Thanks for the reply, yes it was :)
More information about the Python-list
mailing list