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


Groups > comp.lang.python > #34224

Re: CSV out of range

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <tolidtm@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'try:': 0.07; 'cc:addr :python-list': 0.10; 'did:': 0.16; 'indexerror:': 0.16; 'subject:CSV': 0.16; 'received:209.85.214.174': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:google.com': 0.34; 'received:209.85': 0.35; 'except': 0.36; 'thank': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60
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:to :cc:content-type; bh=b8wxQ14xuQW9IjIRl23gAJTs5MA5UgclamnX4vsX5zk=; b=ES7VbKSzscTeTAS3zQsFX7izzxuZCSEdVfe0+XzJtnY4luxiYwvUl7QQc2sDQawWcG fySn6KSAmEcDzpTt2hlShU99oms4+1PoX1od6jYSteI1QNAvdt9Nyk0ipA6ow2FQcax2 tgue/Z/1H9/QwSSWdTSJwkUJLS1JRr+PVMTD2boxMXhRMtPjQ7JmmdxecpI+AtIFoq0Y UJUaMjSh2mp9G6KE7M7U04KBF764J/vAqXmeN70Y4P8uR4u7jPjt7i3VAi8To4rltWLL Iy5yOwcKbe3rsIT6FJ3VAN3q8ZZro78aZHxCnE0tSmyZFFnTWkNjCcE288e17o35s4Qt qO+A==
MIME-Version 1.0
In-Reply-To <CAKhY55MVEg=_RXo8gk8rAhWLmcrXs5nXb6+4rdZ1AoBBqVy1wQ@mail.gmail.com>
References <CAKhY55MFb6yTNu-nF-bAa0Fd0BCGyfd85d5FmCCDJ1CRL8nCCg@mail.gmail.com> <20121204113102.GA4194@taris.box> <CAKhY55MVEg=_RXo8gk8rAhWLmcrXs5nXb6+4rdZ1AoBBqVy1wQ@mail.gmail.com>
Date Tue, 4 Dec 2012 14:02:46 +0100
Subject Re: CSV out of range
From Anatoli Hristov <tolidtm@gmail.com>
To Thomas Bach <thbach@students.uni-mainz.de>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
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.460.1354626169.29569.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1354626169 news.xs4all.nl 6873 [2001:888:2000:d::a6]:47770
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34224

Show key headers only | View raw


The issue is now solved I did:

for x in mylist:
    try:
        sku.append(x[4])
    except IndexError:
        pass

Thank you for your help

Anatoli

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


Thread

Re: CSV out of range Anatoli Hristov <tolidtm@gmail.com> - 2012-12-04 14:02 +0100
  Re: CSV out of range Neil Cerutti <neilc@norwich.edu> - 2012-12-04 13:58 +0000
    Re: CSV out of range Anatoli Hristov <tolidtm@gmail.com> - 2012-12-04 15:38 +0100

csiph-web