symbolic icon indicating copy to clipboard operation
symbolic copied to clipboard

Add method to convert a sym to a pyobject

Open cbm755 opened this issue 8 years ago • 4 comments

This is for use with the Pytave project.

cbm755 avatar Aug 24 '16 21:08 cbm755

This was #509, reopened after pytave merge

cbm755 avatar Aug 24 '16 21:08 cbm755

My only nits to pick are the names. The name pyobject isn't Matlab compatible, it's what we came up with to be the hidden implementation of PyObjects, which is fine, but it's kind of like an implementation detail at this point.

I also prefer have_pytave to be something else since the name pytave will be obsolete soon.

mtmiller avatar May 20 '17 14:05 mtmiller

I changed to have_py. I agree with the other point and have moved the discussion upstream: https://bitbucket.org/mtmiller/pytave/issues/61/have-subsasgn-pycall-others-cast-their

cbm755 avatar May 20 '17 22:05 cbm755

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.

mtmiller avatar May 20 '17 23:05 mtmiller