Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:not': 0.03; "subject:' ": 0.07; 'hiding': 0.09; 'received:67.192': 0.09; 'received:67.192.241': 0.09; 'received:dfw.emailsrvr.com': 0.09; 'callable': 0.16; 'csv': 0.16; 'delimiter': 0.16; 'subject:object': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'help.': 0.21; 'import': 0.22; 'header:User-Agent:1': 0.23; 'received:emailsrvr.com': 0.24; 'received:(smtp server)': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:list': 0.30; "i'm": 0.30; 'gary': 0.31; 'open': 0.33; 'skip:d 20': 0.34; "i'd": 0.34; 'but': 0.35; 'useful': 0.36; 'to:addr:python-list': 0.38; 'help,': 0.39; 'to:addr:python.org': 0.39; 'tell': 0.60; 'full': 0.61; 'email addr:gmail.com': 0.63; 'information': 0.63; 'high': 0.63; 'close': 0.67; 'cut': 0.74; 'glad': 0.83; 'low': 0.83 X-Virus-Scanned: OK Date: Thu, 06 Feb 2014 00:53:58 -0800 From: Gary Herron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: TypeError: 'list' object is not callable References: <38411b43-0f2b-451c-a4ac-1379b5cc8607@googlegroups.com> In-Reply-To: <38411b43-0f2b-451c-a4ac-1379b5cc8607@googlegroups.com> Content-Type: multipart/alternative; boundary="------------010504010602060401050707" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 79 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391677305 news.xs4all.nl 2946 [2001:888:2000:d::a6]:36681 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65524 This is a multi-part message in MIME format. --------------010504010602060401050707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 02/06/2014 12:01 AM, wilsonmonde@gmail.com wrote: > import csv > > date1 = [] > open = [] > high = [] > low = [] > close = [] > data = [] > with open("C:/Documents and Settings/wilson/My Documents/Downloads/execution.csv", "rb") as csvfile: > fastreader = csv.reader(csvfile, delimiter = ",", skipinitialspace=True) > count = 0 > for row in fastreader: > date1.append(row[0]) > count = count + 1 > > > TypeError: 'list' object is not callable I'd be glad to help, but I'm not interested in guessing. Pleas take the time to tell us what line produced that error? That is: cut and paste the *full* traceback instead of hiding useful information when you are asking for help. Gary Herron --------------010504010602060401050707 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 02/06/2014 12:01 AM, wilsonmonde@gmail.com wrote:
import csv

date1 = []
open = []
high = []
low = []
close = []
data = []
with open("C:/Documents and Settings/wilson/My Documents/Downloads/execution.csv", "rb") as csvfile:
	fastreader = csv.reader(csvfile, delimiter = ",", skipinitialspace=True)
	count = 0
	for row in fastreader:
		date1.append(row[0])
		count = count + 1


TypeError: 'list' object is not callable

I'd be glad to help, but I'm not interested in guessing.  Pleas take the time to tell us what line produced that error?  That is: cut and paste the full traceback instead of hiding useful information when you are asking for help.

Gary Herron

--------------010504010602060401050707--