what's the difference between these two methods? (aka, why doesn't one of them work?)

Carsten Haese carsten at uniqsys.com
Thu Nov 2 16:23:29 EST 2006


On Thu, 2006-11-02 at 13:14 -0800, JohnJSal wrote:
> JohnJSal wrote:
> > JohnJSal wrote:
> > > Peter Otten wrote:
> > >
> > >
> > > > ...the above is not a 1-tuple, but an ordinary string. You forgot the
> > > > trailing comma:
> > > >
> > > > ('notes',)
> > >
> > > Right you are! Now it works! :)
> > >
> > > Thanks!
> >
> > Oh great, now I've moved on to another issue. It seems that the list
> > appending isn't working right. All that gets added to a list is the
> > last value, not everything. Am I doing something wrong with the append
> > method?
> 
> Ah, got it! I was reinitializing the table_values list in the wrong
> place

The fact that you were able to answer your own question only a few
minutes later indicates to me that you should set your "I give up and
ask the list" threshold a tad higher.

-Carsten





More information about the Python-list mailing list