If you call the file test.py (and not test.sage) then the Sage preparser will not be applied to the input; in which case the ^ operator means something silly (bitwise "and"). So: either change the ^ to ** ar rename the file to have a .sage suffix,
John On 9 April 2014 19:41, John H Palmieri <[email protected]> wrote: > The problem is the line > > Gamma=DirichletGroup(p^e) > > The file 'test.py' is treated as pure Python, and the '^' operator is not > exponentation in Python: it's bitwise exclusive or. Sage uses slightly > modified Python syntax: see > http://www.sagemath.org/doc/tutorial/programming.html#loading-and-attaching-sage-files, > for example. If you change this to > > Gamma=DirichletGroup(p**e) > > it should work consistently in the two settings. > > -- > John > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
