Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42775
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '"this': 0.03; 'syntax': 0.04; 'subject:code': 0.07; 'subject:file': 0.07; 'string': 0.09; "'return": 0.09; 'builtin': 0.09; 'parameter': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'trailing': 0.09; 'python': 0.11; 'def': 0.12; 'jan': 0.12; "';'": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'written': 0.21; 'print': 0.22; 'header:User- Agent:1': 0.23; 'instead.': 0.24; 'subject:problem': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'leave': 0.29; 'code': 0.31; 'implicit': 0.31; 'prints': 0.31; 'return;': 0.31; 'subject:that': 0.31; 'file': 0.32; 'run': 0.32; 'another': 0.32; 'something': 0.35; 'there': 0.35; 'possible': 0.36; 'error.': 0.37; 'list': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'bad': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'received:173': 0.61; 'name': 0.63; 'notified': 0.63; 'our': 0.64; 'received:fios.verizon.net': 0.84; 'directly.': 0.95 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Jan Reedy <tjreedy@udel.edu> |
| Subject | Re: problem in running a basic code in python 3.3.0 that includes HTML file |
| Date | Thu, 04 Apr 2013 15:48:27 -0400 |
| References | <4b7526eb-b501-4ff8-a257-8cfefbeda413@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-251-66.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
| In-Reply-To | <4b7526eb-b501-4ff8-a257-8cfefbeda413@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.113.1365104927.3114.python-list@python.org> (permalink) |
| Lines | 55 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365104927 news.xs4all.nl 6909 [2001:888:2000:d::a6]:52687 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:42775 |
Show key headers only | View raw
On 4/4/2013 3:08 PM, Satabdi Mukherjee wrote: > i have written this code and i need to run this file > > def CreateEvent(str): Using the builtin name 'str' as a parameter name is a bad idea. Use 's' or 'string' or something instead. > "This prints a passed string into this function"; The line above has to be indented. Leave off the trailing ';' > print str; This is not valid in Python 3, where print() is a function This line would have to be 'print(s)'. However, the function as written is senseless; just call print() directly. > return; And empty return at the end does nothing. There is already an implicit 'return None' at the end of every function. > CreateEvent (print''' delete 'print' -- it is another syntax error. > content-type: text/html > > <html> > <head> > <title> the list of all possible events that can be notified by our system </title> > </head> > <body> > <form> > <input type="checkbox" name="tsunami" value="tsunami">tsunami<br> > <input type="checkbox" name="earthquake" value="earthquake">earthquake<br> > <input type="checkbox" name="volcano" value="volcano">volcano<br> > <input type="checkbox" name="hurricane" value="hurricane">hurricane<br> > <input type="checkbox" name="sinkholes" value="sinkholes">sinkholes<br> > <input type="checkbox" name="tornado" value="tornado">tornado<br> > <input type="checkbox" name="landslide" value="landslide">landslide<br> > <input type="checkbox" name="downburst" value="downburst">downburst<br> > </form> > > <input type="submit" value="Submit"> > </body> > </html> > ''') -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee <satamukh@gmail.com> - 2013-04-04 12:08 -0700 Re: problem in running a basic code in python 3.3.0 that includes HTML file Terry Jan Reedy <tjreedy@udel.edu> - 2013-04-04 15:48 -0400
csiph-web