@nvs232 brought this up on the maillist.
Consider the following Python object (example needs Sympy).
>> myexpr = py.sympy.S ('f(x)') myexpr = [pyobject 0x7f6105f55908] f(x)
Various operations on
myexpr give a pyexec conversion error:
>> py.str (myexpr) error: pyexec: error in return value type conversion error: called from subsref at line 59 column 9 subsref at line 56 column 7
(expected value is a python string 'f(x)').
Some python output that might be relevant:
>>> sympy.srepr(myexpr) "Function('f')(Symbol('x'))" >>> type(myexpr) f
Perhaps the strange return from
type is confusing things? These
sympy.Function objects are a bit strange IIRC. Perhaps subsref is trying to deal with the
(x) part? Anyway, there is something we're not doing quiet right.