WolframClientForPython icon indicating copy to clipboard operation
WolframClientForPython copied to clipboard

How to convert back "WolframObjects" to python objects

Open sla-te opened this issue 3 years ago • 0 comments

e.g. Table[Values[i], {i, WordData["motorbus", "Synonyms"]}] Id like to have a python List.. As of now I am doing it like this (which seems very hacky)

raw_results = evaluate('ExportString[Table[Values[i], {i, WordData["motorbus", "Synonyms"]}], "CSV"]')
result_list = results.replace('"', '').replace('\n', '').split(',')

sla-te avatar Mar 06 '22 18:03 sla-te