-
Notifications
You must be signed in to change notification settings - Fork 37
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 method to convert a sym to a pyobject #515
base: master
Are you sure you want to change the base?
Conversation
This is for use with the Pytave project.
This was #509, reopened after pytave merge |
inst/@sym/pyobject.m
Outdated
|
||
function y = pyobject (x) | ||
|
||
y = py.sympy.S (char (x)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will need to be sympy (x)
not char (x)
b/c of recent changes.
My only nits to pick are the names. The name I also prefer |
I changed to |
Thanks for the reminder about the upstream issue, I had been wondering what the use case would be, now I see that you want to be able to assign a sym variable into a container, and not that the user is calling the conversion method explicitly. So the intent is that this effectively acts as an implicit casting operator. |
This is for use with the Pytave project.