That has been fixed in 6.6.beta1, you did not say which version you were using.
John On 18 March 2015 at 04:05, William Stein <wst...@gmail.com> wrote: > On Tue, Mar 17, 2015 at 7:55 PM, kcrisman <kcris...@gmail.com> wrote: >> I fully accept the following is probably user error due to having not picked >> an embedding of the field. >> >> sage: GaussianIntegers = NumberField(x^2+1, 'I').ring_of_integers() >> sage: A = GaussianIntegers([2,1]) >> sage: print A >> I + 2 >> sage: print A.n() >> <lots of junk> >> RuntimeError: maximum recursion depth exceeded while calling a Python object >> >> Still, this seems like not the most helpful error message; shouldn't it tell >> me to do (something like) this? > > Yes! Definitely a bug... > >> >> sage: GaussianIntegers = NumberField(x^2+1, 'I', >> embedding=CC.gen()).ring_of_integers() >> sage: A = GaussianIntegers([2,1]) >> sage: print A.n() >> 2.00000000000000 + 1.00000000000000*I >> >> - kcrisman >> >> -- >> 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 sage-support+unsubscr...@googlegroups.com. >> To post to this group, send email to sage-support@googlegroups.com. >> Visit this group at http://groups.google.com/group/sage-support. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > William (http://wstein.org) > > -- > 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 sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.