what's the difference between these two methods? (aka, why doesn't one of them work?)
ak at silmarill.org
Thu Nov 2 22:18:59 CET 2006
> 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
Well, append method is for appending a value to a list. A single value.
You can use extend method (iirc) to extend a list with another list.
More information about the Python-list