Skip to content
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

Don't use imports from rings.all in matrices #29561

Closed
tscrim opened this issue Apr 24, 2020 · 9 comments
Closed

Don't use imports from rings.all in matrices #29561

tscrim opened this issue Apr 24, 2020 · 9 comments

Comments

@tscrim
Copy link
Collaborator

tscrim commented Apr 24, 2020

This can cause import loops that are not naturally there when importing matrices at the top-level in skew polynomials. See, e.g., #21264

CC: @xcaruso

Component: refactoring

Author: Travis Scrimshaw

Branch/Commit: eac641b

Reviewer: Xavier Caruso

Issue created by migration from https://trac.sagemath.org/ticket/29561

@tscrim tscrim added this to the sage-9.2 milestone Apr 24, 2020
@tscrim
Copy link
Collaborator Author

tscrim commented Apr 24, 2020

Commit: eac641b

@tscrim

This comment has been minimized.

@tscrim
Copy link
Collaborator Author

tscrim commented Apr 24, 2020

comment:1

Hopefully this will help untangle a bit of Sage's import hell too.


New commits:

eac641bMaking imports more local in matrices.

@tscrim
Copy link
Collaborator Author

tscrim commented Apr 24, 2020

@xcaruso
Copy link
Contributor

xcaruso commented Apr 25, 2020

comment:2

I know that they are not related to your changes but maybe you could also fix the pyflakes issues reported by the patchbot in this ticket:

git checkout patchbot/ticket_merged
src/sage/matrix/benchmark.py:145: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:184: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:223: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:261: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:301: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:343: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:387: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:452: local variable 'd' is assigned to but never used
src/sage/matrix/benchmark.py:492: local variable 'd' is assigned to but never used
src/sage/matrix/benchmark.py:536: local variable 'w' is assigned to but never used
src/sage/matrix/benchmark.py:615: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:654: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:692: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:738: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:778: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:814: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:851: local variable 'd' is assigned to but never used
src/sage/matrix/benchmark.py:913: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:952: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:994: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:1035: local variable 'd' is assigned to but never used
src/sage/matrix/benchmark.py:1069: local variable 'd' is assigned to but never used
src/sage/matrix/benchmark.py:1107: local variable 'w' is assigned to but never used
src/sage/matrix/benchmark.py:1160: local variable 'v' is assigned to but never used
src/sage/matrix/benchmark.py:1200: local variable 'v' is assigned to but never used

src/sage/matrix/matrix_integer_dense_hnf.py:17: 'sage.rings.rational_field.QQ' imported but unused

Apart from this, everything looks good to me.

@xcaruso
Copy link
Contributor

xcaruso commented Apr 25, 2020

Reviewer: Xavier Caruso

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 25, 2020

comment:3

Does this ticket fix a bug and should go into 9.1?

@xcaruso
Copy link
Contributor

xcaruso commented Apr 25, 2020

comment:4

No, it does not really fix a bug. I think it can wait for 9.2.

@vbraun
Copy link
Member

vbraun commented May 2, 2020

Changed branch from u/tscrim/specific_imports_matrices-29561 to eac641b

@vbraun vbraun closed this as completed in 1c8196a May 2, 2020
@mkoeppe mkoeppe modified the milestones: sage-9.2, sage-9.1 May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants