[DB-SIG] Why can't I append to a list object?
Wayne
infotechsys@pivot.net
Mon, 07 Feb 2000 02:59:37 -0500
Hello,
I have some code that I can figure out why it dosen't work. The piece of
code is this -
.
.
.
queryResults = db.query(mySelection)
rptData = queryResults.dictresult()
rptData.append = ({'EOF':'EOF'}) <--- this is the statement I get my
error.
The error I get is:
rptData.append = ({'EOF':'EOF'})
TypeError: object has read-only attributes
From what I read I thought one could append onto a list.
A side question-
What I'm trying to do is reconize when I read all the data from the
list. I use 'for' loop
but have found nothing in the material I read that would indicate how
to determine
the end of the list.
TIA.
Wayne