Re: convert string containing list to list (or tuple) type
- From: Duncan Booth <duncan.booth@xxxxxxxxxxxxxxx>
- Date: 30 May 2008 14:02:31 GMT
"Poppy" <znfmail-pythonlang@xxxxxxxxx> wrote:
a = ',P,'
b = ',I,G,AQ,ET,K,BF,'
c = ',DZ,'
for ea in (a,b,c):
print lst_codes(ea.strip(","))
Why not just use:
ea.strip(',').split(',')
?
--
Duncan Booth http://kupuguy.blogspot.com
.
- References:
- Prev by Date: convert string containing list to list (or tuple) type
- Next by Date: Re: convert string containing list to list (or tuple) type
- Previous by thread: convert string containing list to list (or tuple) type
- Next by thread: Re: convert string containing list to list (or tuple) type
- Index(es):