Comma delimited ASCII
Peter Schneider-Kamp
nowonder at nowonder.de
Sun Aug 27 20:01:05 EDT 2000
Timothy Grant wrote:
>
> "This","is","a","sample","data, set","there", "are",
> "also",1,2,3,4,"numbers"
how about a simple solution:
>>> line = '"This","is","a","sample","data, set","there", "are", "also",1,2,3,4,"numbers"'
>>> exec('data = ('+line+')')
>>> data
('This', 'is', 'a', 'sample', 'data, set', 'there', 'are', 'also', 1, 2, 3, 4, 'numbers')
> Suggestions would be greatly appreciated!
not-sure-you-like-this-one-<wink>-ly y'rs
Peter
--
Peter Schneider-Kamp ++47-7388-7331
Herman Krags veg 51-11 mailto:peter at schneider-kamp.de
N-7050 Trondheim http://schneider-kamp.de
More information about the Python-list
mailing list