| 1 | initial version |
It seems you are trying to avoid cluttering the namespace? Then do this:
import sage.all
from sage.all import Matrix,vector,ZZ, MixedIntegerLinearProgram
kcrisman was right---lots of Sage depends on lots of other things in Sage, and importing just a piece (i.e., without doing import sage.all is definitely not supported and usually will break.
| 2 | No.2 Revision |
It seems you are trying to avoid cluttering the namespace? Then do this:
import sage.all
from sage.all import Matrix,vector,ZZ, MixedIntegerLinearProgram
kcrisman was right---lots of Sage depends on lots of other things in Sage, and importing just a piece (i.e., without doing import sage.all ) is definitely not supported and usually will break.
| 3 | No.3 Revision |
It seems you are trying to avoid cluttering the namespace? Then do this:
import sage.all
from sage.all import Matrix,vector,ZZ, MixedIntegerLinearProgram
kcrisman was right---lots of Sage depends on lots of other things in Sage, and importing just a piece (i.e., without doing import sage.all) is definitely not supported and usually will break.may often break or not provide any benefit.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.