Updates:
        Labels: EasyToFix

Comment #1 on issue 2441 by renato.c...@gmail.com: sympify() should recognize and convert mpmath types
http://code.google.com/p/sympy/issues/detail?id=2441

I intended to fix this using the class method Expr._from_mpmath, like this:

    from sympy.core.sympify import converter
converter[mpmath.ctx_mp_python.mpnumeric] = lambda x: Expr._from_mpmath(x, x.context.prec)

Not sure yet where to put this, core/evalf looks good, but maybe inside the mpmath module?

Also, the underscore says it's a private method, but it's the only one of its kind and can be useful in a broader context. Maybe we should have a function from_mpmath(), or make this method public? (ok, this is kind of detail, but anyhow, I feel uncomfortable using it from other module)

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to