| 1 | initial version |
from sympy import * overwrites the definition of Sage's Integer class:
print(Integer)
from sympy import *
print(Integer)
prints:
<class 'sage.rings.integer.integer'=""> <class 'sympy.core.numbers.integer'="">
Possible solutions:
sympy, not *or reimport Integer from Sage:
from sympy import * from sage.rings.integer import Integer
or explicitly specify type of 123:
ZZ(123).valuation(3)
| 2 | No.2 Revision |
The problem caused by
from sympy import * overwrites overwriting the definition of Sage's Integer class:
print(Integer)
from sympy import *
print(Integer)
prints:
<class 'sage.rings.integer.integer'=""> <class 'sympy.core.numbers.integer'="">
Possible solutions:
sympy, not *or reimport Integer from Sage:
from sympy import * from sage.rings.integer import Integer
or explicitly specify the type of 123:123 - like:
ZZ(123).valuation(3)
| 3 | No.3 Revision |
The problem caused by
from sympy import * overwriting the definition of Sage's Integer class:
print(Integer)
from sympy import *
print(Integer)
prints:
<class 'sage.rings.integer.integer'=""> <class 'sympy.core.numbers.integer'="">
Possible solutions:
sympy, not *or reimport Integer from Sage:
from sympy import *
*
from sage.rings.integer import Integer
or explicitly specify the type of 123 - like:
ZZ(123).valuation(3)
| 4 | No.4 Revision |
The problem caused by
from sympy import * overwriting the definition of Sage's Integer class:
print(Integer)
from sympy import *
print(Integer)
prints:
<class 'sage.rings.integer.integer'=""> <class 'sympy.core.numbers.integer'="">
Possible solutions:
sympy, not *or reimport re-import Integer from Sage:
from sympy import *
*
from sage.rings.integer import Integer
or explicitly specify the type of 123 - like:
ZZ(123).valuation(3)
| 5 | No.5 Revision |
The problem is caused by
from sympy import * overwriting the definition of Sage's Integer class:
print(Integer)
from sympy import *
print(Integer)
prints:
<class 'sage.rings.integer.integer'=""> <class 'sympy.core.numbers.integer'="">
Possible solutions:
sympy, not *or re-import Integer from Sage:
from sympy import *
from sage.rings.integer import Integer
or explicitly specify the type of 123 - like:
ZZ(123).valuation(3)
| 6 | No.6 Revision |
The problem is caused by
from sympy import * overwriting the definition of Sage's Integer class:
print(Integer)
from sympy import *
print(Integer)
prints:
<class Possible solutions:
sympy, not *or re-import Integer from Sage:
from sympy import *
from sage.rings.integer import Integer
or explicitly specify the type of 123 - like:
ZZ(123).valuation(3)
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.