typecasting: a string object to a dictionary object
dont bother
dontbotherworld at yahoo.com
Fri Mar 12 22:57:51 EST 2004
Here am I,
On the border...if someone can help me, it would be
nice:
I have a string:
feature_vector. It is of the form
<index: value, index: value, index: value>
I want to make this string into a dictionary so that I
can apply .keys() method
If I apply .keys() method straight away I get this
error:
AttributeError: 'str' object has no attribute 'keys'
Is there a way in which I can convert/typecast my
string thing to dictionary ??
Thax in advance
Dont
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
More information about the Python-list
mailing list