Closed sla-te closed 1 year ago
Hi, this is documented here:
by default you are getting back tuples, that are immutable. you can convert them to list with python code.
>>> from wolframclient.evaluation import WolframLanguageSession
>>> session = WolframLanguageSession()
>>> res = session.evaluate('Table[Values[i], {i, WordData["motorbus", "Synonyms"]}]')
>>> list(map(list, res))
[['autobus', 'bus', 'charabanc', 'coach', 'double-decker', 'jitney', 'motorcoach', 'omnibus', 'passenger vehicle']]
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)