Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77852
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'subject:error': 0.03; 'sys': 0.07; 'omit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'required,': 0.09; 'wrote': 0.14; 'indexerror:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'trace.': 0.16; 'index': 0.16; 'stack': 0.19; 'command': 0.22; '>>>': 0.22; 'import': 0.22; 'script': 0.25; 'least': 0.26; 'gets': 0.27; 'header:X-Complaints- To:1': 0.27; 'function': 0.29; 'subject:the': 0.34; 'something': 0.35; 'should': 0.36; 'list': 0.37; 'filled': 0.38; 'to:addr :python-list': 0.38; 'itself': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'entire': 0.61; 'range': 0.61; 'kindly': 0.61; 'simply': 0.61; "you're": 0.61; 'email addr:gmail.com': 0.63; 'show': 0.63; 'dear': 0.65; 'useful.': 0.68; 'received:204': 0.75; 'protect': 0.79; 'friends': 0.81; 'subject:find': 0.84; 'subject::': 0.85 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dave Angel <davea@davea.name> |
| Subject | Re:find the error |
| Date | Sat, 13 Sep 2014 19:26:36 -0400 (EDT) |
| Organization | news.gmane.org |
| References | <70d7bef7-6393-41e1-b4e0-a5d3a6630063@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 204.111.100.237 |
| X-Newsreader | PiaoHong.Usenet.Client.VIP:1.61 |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14001.1410650691.18130.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1410650691 news.xs4all.nl 2909 [2001:888:2000:d::a6]:38387 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:77852 |
Show key headers only | View raw
daoudimca@gmail.com Wrote in message: > Dear friends when i used > import urllib, re, sys > > symbol = sys.argv[1] >>> this function is show -->> symbol = sys.argv[1] > IndexError: list index out of range > > kindly find the solution of this > sys.argv is filled in from the command line arguments. Perhaps your script should protect itself by majing sure len (sys.argv) is what's required, in this case at least 2. That way the user gets a friendlier message when he omits the arguments. By the way, you should simply copy/paste the entire stack trace. When you paraphrase, you're likely to have a typo, or omit something useful. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
find the error daoudimca@gmail.com - 2014-09-12 22:47 -0700
Re: find the error Chris Angelico <rosuav@gmail.com> - 2014-09-13 15:53 +1000
Re: find the error Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-09-13 08:43 +0200
Re: find the error Denis McMahon <denismfmcmahon@gmail.com> - 2014-09-13 17:28 +0000
Re:find the error Dave Angel <davea@davea.name> - 2014-09-13 19:26 -0400
csiph-web