Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77830

Re: find the error

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:error': 0.03; 'sys': 0.07; 'arguments': 0.09; 'arguments,': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'indexerror:': 0.16; 'elements': 0.16; 'index': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'script.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'sep': 0.31; 'subject:the': 0.34; 'received:google.com': 0.35; 'list': 0.37; 'pm,': 0.38; 'range': 0.61; 'kindly': 0.61; "you're": 0.61; 'show': 0.63; 'provide': 0.64; 'dear': 0.65; 'friends': 0.81; 'find.': 0.84; 'subject:find': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=oBIguQT3R7iyRFVZbX+WW8k+91hLGhNA1/XlZ3tdtg4=; b=N00A5ipypae7aBzqpkP5Nclnk6m/6G+1MkBKFvTBirLkhiKdYHzWYJwXmOu4XTH7k5 vJLSqKYCfyMgH52QHiIZydUWNVUOxknlaJwHjEK6BakjYscYYAVlkqv54UFFWyXpHj/g NdlVDJpEiaDl2HyD5tD/ow3+pLVV5GLw81wmZnjCXL/I3Eo5lPgc+95zZ34phd1DoeuH w9OmXwXJgAudAMbAhQcMQyoxt5LsQ7MJUouVNsAyRPndFEyYj5k/AcsTAxuXEX96UY+q M5oGqeoLV1oMeOaFPlRkIe6MKua+xriHLOz39s0gJCvIlRb3lmk0xeZ3B/xi+ua9pjxG t3cQ==
MIME-Version 1.0
X-Received by 10.43.96.8 with SMTP id ce8mr14235736icc.14.1410587617186; Fri, 12 Sep 2014 22:53:37 -0700 (PDT)
In-Reply-To <70d7bef7-6393-41e1-b4e0-a5d3a6630063@googlegroups.com>
References <70d7bef7-6393-41e1-b4e0-a5d3a6630063@googlegroups.com>
Date Sat, 13 Sep 2014 15:53:37 +1000
Subject Re: find the error
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.13989.1410587619.18130.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1410587619 news.xs4all.nl 2920 [2001:888:2000:d::a6]:51670
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77830

Show key headers only | View raw


On Sat, Sep 13, 2014 at 3:47 PM,  <daoudimca@gmail.com> wrote:
> 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

If you're using sys.argv, you need to provide arguments to your
script. You provided no arguments, so the list doesn't have elements
for you to find.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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