> What does html() exactly do? According to the doc string, its argument > must be a string. > It seems to me that it just garnishes the string with `<html><font > color='black'>` and `</font></html>`.
It seems that way, check sage.misc.html for implementation details. > And this is surprising to me. My expectation was that html(X) takes > any object X, tests whether it has a certain special method (say, > `__html__`) for making use of it, and only if the special method isn't > there, it returns something based on str(X). I'd expect that too, however the purpose could be something completely different which could conflict with that behavior. Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---