Re: Converting List of Tuples to List of Strings

Martin Jenkins <mj-Vfh7fEhEWOlaa/[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Organization XQP Ltd
Message-ID <[email protected]>
Rich Shepard wrote:

> values = ('eco', appData.polEco[i], ecoVec[i])

The creates a tuple which contains a string, a tuple containing a string 
and a string. You need a tuple containing three strings so you should 
have something like:

values = ('eco', appData.polEco[i][0], ecoVec[i])

You couldn't strip parentheses off because they're not part of the string.

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.