transforming a list into a string
From: jblazi (jblazi_at_hotmail.com)
Date: 07/31/04
- Next message: Peter Otten: "Re: transforming a list into a string"
- Previous message: Diez B. Roggisch: "Re: PyQt - clear widget for redraw"
- Next in thread: Peter Otten: "Re: transforming a list into a string"
- Reply: Peter Otten: "Re: transforming a list into a string"
- Reply: Roy Smith: "Re: transforming a list into a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jul 2004 14:27:24 +0200
Let us assume I have a list like
['1','2','7','8','12','13]
and would like to transoform it into the string
'{1,2},{7,8},{12,13}'
Which is the simplest way of achiebing this? (The list is in fact much
longer and I may have to cut the resulting strings into chunks of 100 or
so.)
TIA,
jb
- Next message: Peter Otten: "Re: transforming a list into a string"
- Previous message: Diez B. Roggisch: "Re: PyQt - clear widget for redraw"
- Next in thread: Peter Otten: "Re: transforming a list into a string"
- Reply: Peter Otten: "Re: transforming a list into a string"
- Reply: Roy Smith: "Re: transforming a list into a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|