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

PyLint unused variable cleanup for sage.rings.polynomial #2842

Closed
malb opened this issue Apr 7, 2008 · 6 comments
Closed

PyLint unused variable cleanup for sage.rings.polynomial #2842

malb opened this issue Apr 7, 2008 · 6 comments

Comments

@malb
Copy link
Member

malb commented Apr 7, 2008

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.

Component: misc

Keywords: pylint

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

@malb
Copy link
Member Author

malb commented Apr 7, 2008

Attachment: pylint_polynomial_unused.patch.gz

@mwhansen
Copy link
Contributor

mwhansen commented Apr 7, 2008

comment:1

Attachment: 2842.patch.gz

Looks good to me. Apply just 2842.patch after #2844 .

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 8, 2008

comment:2

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

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title PyLint unused variable cleanup for sage.rings.polynomial [pending fixes] PyLint unused variable cleanup for sage.rings.polynomial Apr 8, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 8, 2008

comment:3

Note that post the #2844 merge you ought to apply 2842.patch.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 8, 2008

comment:4

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

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title [pending fixes] PyLint unused variable cleanup for sage.rings.polynomial PyLint unused variable cleanup for sage.rings.polynomial Apr 8, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 8, 2008

comment:5

Merged 2842.patch in Sage 3.0.alpha3

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Apr 8, 2008
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

2 participants