It works on my Ubuntu. How did you run this demo?
On Tue, Mar 31, 2015 at 9:22 AM Stephen Johns <[email protected]>
wrote:
> I followed the install page and created the example file:
>
> import web
>
> urls = (
> '/', 'index'
> )
>
> class index:
> def GET(self):
> return "Hello, world!"
>
> if __name__ == "__main__":
> app = web.application(urls, globals())
> app.run()
>
> When I run this, I get the following error. Do I have
>
>
> ./ex.py: line 3: syntax error near unexpected token `('
> ./ex.py: line 3: `urls = ('
>
> Using
> > python --version
> Python 2.6.6
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/webpy.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.