Re: Converting List of Tuples to List of Strings

Rich Shepard <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
On Wed, 28 Feb 2007, Martin Jenkins wrote:

> 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])

Martin,

   That's it! I don't know why I keep forgetting to use the second index of
[0], but this is the second time it's not occurred to me.

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

   I thought they were because the tuple was enclosed on double quotes.

Thanks very much,

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |          Accelerator(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
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.