On Monday, November 26, 2012 2:07:34 PM UTC, john_perry_usm wrote:

> Is it a good idea to patch the matplotlib package with a test of whether 
> an object is a sage object?


Definitely not!

If possible, matplotlib should rely on duck-typing:

try:
    alpha = float(obj)
except ValueError:
    <here we know that obj is not a float>
 

> If not, the solution is probably to patch sage's commands that create 
> graphics, to change RealLiteral's to float's.
>

That should be fixed as well. Sage shouldn't feed its own floating point 
classes to 3rd-party libraries, they certainly aren't doctested with 
extended precision floating point numbers.

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


Reply via email to