Invalid Syntax Error

MRAB python at mrabarnett.plus.com
Thu Jan 14 14:57:35 EST 2010


Ray Holt wrote:
> Why am I getting an invalid systax on the first except in the following 
> code. It was copid from the python tutorial for beginners. Thanks, Ray
> import sys
> try:
>     #open file stream
>     file = open(file_name, "w"
[snip]

Missing ")".




More information about the Python-list mailing list