Conversation
in py2, long and int were different types. In py3, only int remains, with long a synonym in cython.
|
Wouldn't it make sense to get rid of |
int_to_Z used to work in Py2 on the type "int" there which were integers that fit in a word. In Py3 there is no such type anymore and "int" now is what "long" used to be -- -arbitrary length integers. In Py3 int_to_Z is buggy: sage: itoZ=sage.rings.integer.int_to_Z() sage: itoZ(1000000000000000000000) OverflowError
|
Yes, it's worse. |
|
Maybe keep an alias |
|
well ... int_to_Z was exported for I guess in cython |
|
Documentation preview for this PR (built with commit 18ace4e; changes) is ready! 🎉 |
|
OK, testing seems successful. Ready to be merged, I think. Review? |
grhkm21
left a comment
There was a problem hiding this comment.
Looks good to me, cleaning up code is always nice.
|
And I agree that keeping (alias) Also there's a function |
Yes I think it is: |
in py2, long and int were different types. In py3, only int remains, with long a synonym in cython.
📝 Checklist
⌛ Dependencies