Ohh yes.., this was a very bad demonstration of the real problem, actually i have a for loop in my .spyx file (for a quick and dirty matrix exponentiation): s = sage.all_cmdline for i in s.srange(1, k): factor = factor * M * (1/k) ....
srange applied in an .spyx file, i.e. without preparsing, does not return Integer's as expected, it returns Python int's if it's not preparsed and that's the reason why '/' is interpreted as a Python operator, if used in a .spyx files you have to explicitly coerse at least one of it's arguments to Integer, like for i in s.srange(Integer(1), k): .... Is this a desired behaviour of srange?? Btw, i would appreciate a .exp() method for matrixes... Thank you very much, Georg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---