Dear Andrew, It turns out that
R.<z1,z2>=PolynomialRing(GF(5),2,"z") is not valid Python, I believe; Sage has a 'preparser' that helps make more things possible. I believe if you do sage: preparse('command') you will see the actual Python that gets done. One the other hand, you could just name your .py file to .sage and you wouldn't have to worry about this, and can still load it, etc. (this is what I do). Hope this helps! - kcrisman On Aug 19, 10:44 am, andrew ewart <aewartma...@googlemail.com> wrote: > If i input > R.<z1,z2>=PolynomialRing(GF(5),2,"z") > direclty to sage it accepts it as a polynomial ring > But if i try to save it as part of a .py file and then load it from > there into sage > ie sage my.py it gives me a syntax error > what module am i missing and so what command do i need to make sage > recognise it in the .py file -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org