[Zope] Convert Help
Todd Loomis
tloomis@dmso.mil
Tue, 26 Feb 2002 12:49:15 -0500
Matt:
Thanks, I'm getting the results ['1', '2', '3'] but I can't get them to
pull out by them selfs. Every time i use them I get ['1', '2', '3'] instead of
1
2
3
which I need to do? So my ? is how do i use this list string to give
something other than ['1', '2', '3']?
Todd
At 12:37 PM 2/26/2002 -0500, you wrote:
>Todd Loomis wrote:
>
>>AJ
>>
>>Well then how do I convert a list into separate strings
>>
>>Todd
>
>
>I think we're having difficulty establishing the context of your question,
>since [ 'a', 'b', 'c' ] IS a list of strings. So, there isnt any
>conversion involved.
>
>If, in Python I had the following
>
> list = [ 'one', 'two', 'three']
>
>I could print out each element as such:
>
> for e in list: print e
>
>and out would print
>
> one
> two
> three
>
>So what I am thinking is that you would be well served visiting the python
>tutorial at www.python.org to get details about the grammar operators.
>
>--
>Matt Kromer
>Zope Corporation http://www.zope.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Todd Loomis
SAIC - DMSO Support
1901 N. Beauregard Street, Suite 500
Alexandria, VA 22311
Office: 703.824.3407 Fax: 703.379.3778
tloomis@dmso.mil