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

Deprecate sage.structure.element.generic_power #24256

Closed
jdemeyer opened this issue Nov 21, 2017 · 17 comments
Closed

Deprecate sage.structure.element.generic_power #24256

jdemeyer opened this issue Nov 21, 2017 · 17 comments

Comments

@jdemeyer
Copy link
Contributor

In #24247, the implementation of generic_power was moved to a new module sage.arith.power. The old implementation should be deprecated. This is done in a separate ticket instead of #24247 because that ticket already does a lot.

Component: coercion

Author: Jeroen Demeyer

Branch/Commit: f855f20

Reviewer: Travis Scrimshaw

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

@jdemeyer jdemeyer added this to the sage-8.1 milestone Nov 21, 2017
@jdemeyer
Copy link
Contributor Author

Changed dependencies from #24247 to #5574

@jdemeyer
Copy link
Contributor Author

Branch: u/jdemeyer/ticket/24256

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 18, 2018

Commit: 6f5a998

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 18, 2018

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

6f5a998Deprecate sage.structure.element.generic_power

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 13, 2018

Changed commit from 6f5a998 to 64837df

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 13, 2018

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

64837dfDeprecate sage.structure.element.generic_power

@jdemeyer
Copy link
Contributor Author

Changed dependencies from #5574 to none

@tscrim
Copy link
Collaborator

tscrim commented Feb 13, 2018

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Feb 13, 2018

comment:7

I believe you are still missing one in schemes/morphism.py:

from sage.structure.element import (AdditiveGroupElement, RingElement,
        Element, generic_power, parent, coercion_model)

From the old patchbot reports, there are also some deprecation warnings popping up for NTL. The only plausible reason I can see from grepping is it is fixed by #5574.

Also, I don't understand why you did not make the change in groups/generic.py?

@tscrim tscrim modified the milestones: sage-8.1, sage-8.2 Feb 13, 2018
@jdemeyer
Copy link
Contributor Author

comment:8

Replying to @tscrim:

Also, I don't understand why you did not make the change in groups/generic.py?

What is "the change"? I kept the import because some code might be importing power from that module. But it's the same generic_power function, so it's still deprecated (as indicated by the comment).

@tscrim
Copy link
Collaborator

tscrim commented Feb 14, 2018

comment:9

Replying to @jdemeyer:

Replying to @tscrim:

Also, I don't understand why you did not make the change in groups/generic.py?

What is "the change"?

-from sage.structure.element import generic_power
+from sage.arith.power import generic_power

I kept the import because some code might be importing power from that module. But it's the same generic_power function, so it's still deprecated (as indicated by the comment).

I see, you are de facto deprecating the import from there as well.

@jdemeyer
Copy link
Contributor Author

comment:10

Replying to @tscrim:

I see, you are de facto deprecating the import from there as well.

Yes, exactly.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 14, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

f855f20Further fixes to generic_power use

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 14, 2018

Changed commit from 64837df to f855f20

@jdemeyer
Copy link
Contributor Author

comment:12

Green bot now.

@tscrim
Copy link
Collaborator

tscrim commented Feb 15, 2018

comment:13

Thanks.

@vbraun
Copy link
Member

vbraun commented Feb 16, 2018

Changed branch from u/jdemeyer/ticket/24256 to f855f20

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

3 participants