Thanks! I'll import each thing and hope it works. On Feb 13, 2:12 pm, Michael Orlitzky <[email protected]> wrote: > On 02/13/12 15:46, R. Grout wrote: > > > so if the doctest framework doesn't do imports, do I have to import > > everything I use in each doctest? > > There is some[1] magic, but I gather this was a new file? Unless you add > your module to sage.all somehow, "from sage.all import *" won't pull it in. > > You can see examples of this in the sage library, for example, > > def is_Field(x): > """ > Return True if x is a field. > > EXAMPLES:: > > sage: from sage.rings.ring import is_Field > sage: is_Field(QQ) > True > sage: is_Field(ZZ) > False > sage: is_Field(pAdicField(2)) > True > sage: is_Field(5) > False > """ > > [1]http://www.sagemath.org/doc/developer/conventions.html#testing-py-pyx...
-- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
