[Tutor] Syntax Problem

Jesse Harris mrjesseh at yahoo.com
Fri Jul 24 23:34:09 CEST 2009


for d in Decks.all(): #loop thru all available decks
          self.response.out.write('<OPTION>'+d.name) 
          self.response.out.write('<OPTION>'+d.description)
self.response.out.write('</SELECT></div>')
self.response.out.write('<div style="float:left">')

<type 'exceptions.SyntaxError'>: invalid syntax (main.py, line 206)

      args =
('invalid syntax', (r'C:\Program Files\Google\google_appengine\bangagears2\main.py', 206, 78, "                \t\tself.response.out.write('<OPTI...elf.response.out.write('<OPTION>'+d.description)\n"))

      filename =
r'C:\Program Files\Google\google_appengine\bangagears2\main.py'

      lineno =
206

      message =
''

      msg =
'invalid syntax'

      offset =
78

      print_file_and_line =
None

      text =
"                \t\tself.response.out.write('<OPTI...elf.response.out.write('<OPTION>'+d.description)\n"









      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090724/295925e5/attachment.htm>


More information about the Tutor mailing list