New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py3 again some care for range #22816
Comments
New commits:
|
Branch: u/chapoton/22816 |
Commit: |
comment:2
The only change I am not sure about is this one: diff --git a/src/sage/matrix/matrix0.pyx b/src/sage/matrix/matrix0.pyx
index c5959f0..50b5d00 100644
--- a/src/sage/matrix/matrix0.pyx
+++ b/src/sage/matrix/matrix0.pyx
@@ -5177,7 +5177,7 @@ cdef class Matrix(sage.structure.element.Matrix):
if not B[self._nrows-1, self._ncols-1]:
raise ZeroDivisionError("input matrix must be nonsingular")
- return B.matrix_from_columns(range(self._ncols, 2*self._ncols))
+ return B.matrix_from_columns(list(xrange(self._ncols, 2 * self._ncols)))
def __pos__(self):
""" I forget if Cython keeps the behavior that |
comment:3
ping? |
comment:4
I have no idea.. |
comment:5
There are already a few list(xrange(...)) in the very same file.. |
comment:6
Fair point. |
Reviewer: Travis Scrimshaw |
Changed branch from u/chapoton/22816 to |
part of #16081
CC: @jdemeyer @tscrim
Component: python3
Author: Frédéric Chapoton
Branch/Commit:
be9e797
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/22816
The text was updated successfully, but these errors were encountered: