Hi there

Is there a function like strptime, which takes a string and converts it 
into an array depending on a format string I provide. Like:
>>> a = '3456\tblub-blib.0.9'
>>> b = '%d\t%s-%s.%f'
>>> c = mysticalfunction(a,b) 
>>> print c
[3456,'blub','blib',0.9]


Many thanks

Andre
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to