Hi Alasdair, On Thu, Sep 23, 2010 at 11:40 PM, Alasdair <[email protected]> wrote: > Is there a more direct way? In python, the operator ^ is supposed to > implement x-or on strings, but of course in Sage that operator is > recognized as an exponential, and so gives an error.
You could try turning the preparser and using hexadecimal notation: sage: version() 'Sage Version 4.5.3, Release Date: 2010-09-04' sage: preparser(False) sage: hex(0x2bd5427c ^ 0x65ef24ab) '0x4e3a66d7' -- Regards Minh Van Nguyen -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
