[issue30559] Bugs in Web app

2017-06-03 Thread Terry J. Reedy

Terry J. Reedy added the comment:

It is good that you included both a short program and the full traceback. Too 
many beginners don't do that when asking questions.  Three comments: your 
program does not have syntax errors and compiled just fine; exceptions almost 
never involved the editor/IDE you happen to use; if 'web' comes from a book, 
its discussion group should be your best bet.

--
assignee: terry.reedy -> 
type: compile error -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30559] Bugs in Web app

2017-06-03 Thread Mark Dickinson

Mark Dickinson added the comment:

Hi Mahira,

This site is for reporting bugs in the Python core language itself, not bugs in 
code written by users.

You appear to be using the "Learn Python the Hard Way" tutorial, which is a 
third-party resource that's not maintained by the Python language developers. 
You might want to try asking your questions on one of the Python mailing lists 
(see https://www.python.org/community/lists/), or the "Learn Code the Hard Way" 
chat room: https://gitter.im/lcthw/Lobby

--
nosy: +mark.dickinson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30559] Bugs in Web app

2017-06-03 Thread Mahira

New submission from Mahira:

Hai 

I followed your Tutorial
In the Following Program, i am getting 
Traceback (most recent call last):
  File 
"C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\localhost.py", 
line 1, in 
import web
  File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\web.py", 
line 6, in 
app = web.application(("urls"),globals())
AttributeError: module 'web' has no attribute 'application'

And my program is:

import web

urls = (
'/', 'index'
)

class index:
def GET(self):
return "Hello, world!"

if __name__ == "__main__":
app = web.application(urls, globals())
app.run()

--
assignee: terry.reedy
components: IDLE
messages: 295071
nosy: Mahira, terry.reedy
priority: normal
severity: normal
status: open
title: Bugs in Web app
type: compile error
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com