i am trying to figure a way to to use a list to log/print my data:
# tmplist = [time, 'nac', 'tgid', 'source', 'dest', 'algid'] is what we
want
tmplist = []
tmplist.append((str(strftime("%Y-%m-%d %H:%M:%S", localtime())))
tmplist.append(field_values["nac"])
tmplist.append(field_values["tgid"])
tmplist.append(field_values["source"])
tmplist.append(field_values["dest"])
tmplist.append(field_values["algid"])
When i run the code program dies like this:
tmplist.append(field_values["nac"])
^
SyntaxError: invalid syntax
I cant figure why it stops on the third line above? Anyone have an idea?
Thanks!
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor