there!
I have been looking for an answer for quite a bit, but to no avail... Anyway, I had a numpy ndarray and I saved it in a txt file with ndarray.tostring(), so now in my file I have stuff like
"b'\xae\xc9\x91\xff\x9d\x12\xac\xbf\xeasz\xfal\t\xba\xbf\xa18x\xf1\x1bF'"
Now I want to decode that so I can apply ndarray.fromstring(byte_string).
How can I achieve it? I already used bytes(byte_string, 'utf-8'), then decode, removing the b and ', etc...
Thanks a lot!
EDIT: For the record, the solution was using b = ast.literal_eval(byte_string). Thank you, Andy!