1 | initial version |
Ahem :
charpent@zen-book-flip:~$ sage -python
Python 3.8.5 (default, Aug 2 2020, 15:09:07)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sage import Integer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Integer' from 'sage' (/usr/local/sage-9/local/lib/python3.8/site-packages/sage/__init__.py)
fails indeed. But :
>>> from sage.all import Integer
succeeds. And pulls with it a large part of Sage :
>>> foo=Integer(3)
>>> bar=foo+2
>>> bar
5
>>> bar.parent()
Integer Ring
but not the preprocessor :
>>> 2^3
1