Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AssociateTo #1545

Closed
TiagoCavalcante opened this issue Aug 13, 2021 · 2 comments
Closed

Add AssociateTo #1545

TiagoCavalcante opened this issue Aug 13, 2021 · 2 comments

Comments

@TiagoCavalcante
Copy link
Contributor

https://reference.wolfram.com/language/ref/AssociateTo.html

@rocky
Copy link
Member

rocky commented Aug 14, 2021

I started looking at this and it is not too difficult. However it brings up what I think is a weakness we currently have with associations: they aren't stored in any sort of efficient or Python-friendly way, but instead are S-expressions.

And this makes things like AssociateTo a little more cumbersome.

So instead what I am thinking of now is taking a longer view and adding a Python dictionary representation that is most useful here, but also useful in the other operations.

And by its nature suggests adding to_python() and from_python() routines which would also be desirable.

@TiagoCavalcante
Copy link
Contributor Author

This already was added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants