[Tutor] Re: Bug in my program
Magnus Lycka
magnus@thinkware.se
Tue Oct 29 10:43:01 2002
At 10:16 2002-10-29 -0500, Kyle Babich wrote:
> > Traceback (most recent call last):
> > File "C:\Documents and Settings\Kyle\My
> > Documents\Programs\TimeTrack\TimeTrackOne.py", line 96, in ?
> > BegLog =3D file('C:/Documents and Settings/All
> > Users/Documents/TimeTrack/logs/beg_log.dat', 'a')
> > TypeError: 'list' object is not callable
put the following just above the problem line (96):
print file
It should print "<type 'file'>", but I guess it will
print a list. Hopefully you will se what it is.
Is there not a single instance of "file =3D" in your
program?
--=20
Magnus Lyck=E5, Thinkware AB
=C4lvans v=E4g 99, SE-907 50 UME=C5
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se