# File imports for polynomial rings in sage

If i type in the following

```
R.<z1,z2> = PolynomialRing(GF(5),2,"z")
```

direclty to Sage it accepts it as a polynomial ring.
But if i place this in a .py file and load it from this Sage
eg `sage my.py`

it gives me a syntax error.
I guess i need a module loaded for it to be detected, but which module and hence which command do i need to make Sage accept this ring.

Could you please edit your question? There are html escaping errors in it. Notice the ampersand gt semicolon? I see the command, but I don't see a question mark or a question in what you originally typed. Thanks.

ccanonc ( 2010-08-19 05:05:38 -0500 )edit