I am trying to import transit-encoded data (encoded in a clojure environment) into Python using transit-python.
I get a "TypeError: unhashable type: 'dict'" when I attempt to do so. I tracked down the issue to a set that contains a dictionary. Here is a minimal example that raises the exception:
from transit.reader import Reader
import StringIO
y = Reader()
z = y.read(StringIO.StringIO("[\"~#set\",[[\"^ \",\"~:keyword\",[\"^ \",\"~:customers\",[\"^0\",[[\"^ \",\"~:domain\",\"foobar.com\"]]]]]]]"))
Is this expected behavior? Ideally, I think, dictionaries would be imported as frozendicts. Is there a simple workaround?
Thanks,
Alex