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.