From: Lyndon Samson Date: 2006-01-07T14:04:15+09:00 Subject: Re: Sippet needed to convert from a string ------=_Part_71816_28983166.1136610240641 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 1/7/06, Tom Reilly wrote: > > Snippit needed > > given some option variables > > c1 =3D 0 > c2 =3D 0 > c3 =3D 0 > c4 =3D 0 > > given a string (a set of pairs of options) which could be read from > MYSQL or a file > > paramString =3D '"c1" 0 "c3" 1 "c2" "y" "c4" "v"' > > such that: > > c1 =3D 0 > c2 =3D "y" > c3 =3D 1 > and c4 =3D "v" eval is your friend for these type of tasks. ------=_Part_71816_28983166.1136610240641--