Ticket #2842 (closed enhancement: fixed)
[with patch, positive review] PyLint unused variable cleanup for sage.rings.polynomial
| Reported by: | malb | Owned by: | cwitty |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-3.0 |
| Component: | misc | Keywords: | pylint |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
The attached patch
- removes unused variables,
- removes unused imports,
- defines undefined variables,
from several files in sage.rings.polynomial. It doesn't fix all issues in that module but this patch is still open for reviews.
Attachments
Change History
comment:1 Changed 5 years ago by mhansen
- Summary changed from [with patch, needs review] PyLint unused variable cleanup for sage.rings.polynomial to [with patch, positive review] PyLint unused variable cleanup for sage.rings.polynomial
Looks good to me. Apply just 2842.patch after #2844 .
comment:2 Changed 5 years ago by mabshoff
- Summary changed from [with patch, positive review] PyLint unused variable cleanup for sage.rings.polynomial to [with patch, positive review, pending fixes] PyLint unused variable cleanup for sage.rings.polynomial
I am seeing one doctest failure on sage.math:
sage -t -long devel/sage/sage/rings/polynomial/multi_polynomial_libsingular.pyx
**********************************************************************
File "/scratch/mabshoff/release-cycle/sage-3.0.alpha3/tmp/multi_polynomial_libsingular.py", line 496:
sage: R.<x,y> = QQ[]; S.<xx,yy> = GF(5)[]; S(5*x*y + x + 17*y)
Expected:
xx + 2*yy
Got:
xx + 0*yy
**********************************************************************
Martin will start poking around tomorrow.
Cheers,
Michael
comment:4 Changed 5 years ago by mabshoff
- Summary changed from [with patch, positive review, pending fixes] PyLint unused variable cleanup for sage.rings.polynomial to [with patch, positive review] PyLint unused variable cleanup for sage.rings.polynomial
Oh well, just applying #2844 causes the above libSingular failures. So I am merging this patch since it works. I would recommend opening another ticket once somebody else can verify the same issue I see. A compile from scratch on sage.math ought to lead to the same result.
Cheers,
Michael
Note: See
TracTickets for help on using
tickets.

