Hmm, so I tried this instead but it also didn't work and gave a similar error:
elif cls_str == "Divide": div_Str = repr_str div_Numerator = macaulay2('numerator div_Str') div_Denominator = macaulay2('denominator div_Str') div_Numerator = div_Numerator.sage_polystring() div_Denominator = div_Denominator.sage_polystring() sage_Div = div_Numerator/div_Denominator return sage_Div I guess I don't understand what each of those variables contains... What is self in this situation? I thought that self would be the Divide object, since that is what's being passed to the to_sage function. But when that didn't work, i assumed that repr_str would contain the string of the Divide object, but that's also not working. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.