[Tutor] One for Kirk...

Jeff Shannon jeff at ccvcorp.com
Mon Aug 25 12:31:14 EDT 2003


Kirk Bailey wrote:
> I saved the sourcecode, and placed it on my server.
>     http://www.tinylist.prg/cgi-bin/wypy.py
> 
> It generates a error:
> -----------------------------------------------------------------------
>   File "/www/www.tinylist.org/cgi-bin/wypy.py", line 23
>     main(dict([(i.name, i.value) for i in cgi.FieldStorage().list]))
>                                    ^
> SyntaxError: invalid syntax
> [Sat Aug 23 14:45:21 2003] [error] [client 67.31.207.132] Premature end 
> of script headers: /www/www.tinylist.org/cgi-bin/wypy.py
> -----------------------------------------------------------------------
> intresting. wonder why it does this?

Weren't you using Python 1.5.2 on your server still?  That's a list 
comprehension, and they were added to Python in 2.0 ...

Jeff Shannon
Technician/Programmer
Credit International






More information about the Tutor mailing list