On Tue, Aug 26, 2008 at 12:28 AM, Simon King <[EMAIL PROTECTED]> wrote: > > Dear William, > > On Aug 26, 8:06 am, "William Stein" <[EMAIL PROTECTED]> wrote: > ... >> Here is the typical sort of thing that happens if you don't import >> sage.all as you should. Note the segfault and all: >> >> teragon-2:~ was$ sage -ipython >> Python 2.5.2 (r252:60911, Jul 10 2008, 00:31:06) >> Type "copyright", "credits" or "license" for more information. >> >> In [1]: from sage.rings.polynomial.multi_polynomial_libsingular import * >> --------------------------------------------------------------------------- >> NameError Traceback (most recent call last) > > I see. Perhaps i misunderstood what you mean: > In fact i *do* import sage.all, but then i do not import *from* > sage.all > That's to say: > import sage > import sage.all > ... > from sage.matrix.constructor import Matrix > > Is this safe?
Yes, that is very safe. Jus make sure you do the "import sage.all" first so that the library gets properly initialized in the right order. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
