Thank you, type(sympy.S.Zero) seems to work.
On 7/4/20 5:17 PM, Oscar Benjamin wrote:
On Sat, 4 Jul 2020 at 16:05, Volker Weißmann
wrote:
using sympy.S.Zero does silence the warning, but isinstance(somevar,
sympy.S.Zero) does not work, because sympy.S.Zero is not the class but
an object
/latest/modules/core.html#s
Oscar
On Fri, 3 Jul 2020 at 15:53, Volker Weißmann
wrote:
Hello,
I have library that is organized as follows:
mymod/__init__.py:
from .base import *
mymod/base.py:
import sympy
from .modA import *
from .modB import *
mymod/modA.py:
from .base import *
var
Hello,
I have library that is organized as follows:
mymod/__init__.py:
from .base import *
mymod/base.py:
import sympy
from .modA import *
from .modB import *
mymod/modA.py:
from .base import *
var = sympy.numbers.Zero
mymod/modB.py:
from .base import *
# other code
When I run python -c "imp