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 is_GapElement #34823

Closed
dimpase opened this issue Dec 4, 2022 · 15 comments
Closed

deprecate is_GapElement #34823

dimpase opened this issue Dec 4, 2022 · 15 comments

Comments

@dimpase
Copy link
Member

dimpase commented Dec 4, 2022

Removing the last uses of is_GapElement, deprecating it

Depends on #34770

CC: @mkoeppe

Component: interfaces

Author: Dima Pasechnik

Branch/Commit: e99db3a

Reviewer: Matthias Koeppe

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

@dimpase dimpase added this to the sage-9.8 milestone Dec 4, 2022
@dimpase
Copy link
Member Author

dimpase commented Dec 4, 2022

Author: Dima Pasechnik

@dimpase

This comment has been minimized.

@dimpase
Copy link
Member Author

dimpase commented Dec 4, 2022

Commit: 7c67a10

@dimpase
Copy link
Member Author

dimpase commented Dec 4, 2022

@dimpase
Copy link
Member Author

dimpase commented Dec 4, 2022

New commits:

21e38a7fix coersion of libgap FFelements; switch to libgap
d4bde80make imports of is_GapEelment uniform across files
eb72ef0avoid is_GapElement
1c4a69fuse GapElement from an abstract superclass
6e5ea79move import of libgap into a function
adc231eremove is_GapElement from number fields code
7c67a10deprecating is_GapElement

@dimpase
Copy link
Member Author

dimpase commented Dec 4, 2022

comment:3

sage/rings/ still need work to convert to libgap, it's not done here.

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 4, 2022

comment:4
 def is_GapElement(x):
     """
+    Deprecated function
+
+    Use isinstance(x,GapElement)
+
     Returns True if x is a GapElement.
 
     EXAMPLES::
 
         sage: from sage.interfaces.gap import is_GapElement
         sage: is_GapElement(gap(2))
+        doctest:...: DeprecationWarning: The function is_GapElement is deprecated. Use isinstance(x, GapElement) instead
+        See https://trac.sagemath.org/34823 for details.

This needs better rst markup. Also, I think the message should point to sage.interfaces.abc specifically

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 4, 2022

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

6c75e9bbetter rst, point at sage.interfaces.abc to use

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 4, 2022

Changed commit from 7c67a10 to 6c75e9b

@dimpase
Copy link
Member Author

dimpase commented Dec 4, 2022

comment:6

OK, done

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 4, 2022

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 4, 2022

Reviewer: Matthias Koeppe

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 4, 2022

Changed commit from 6c75e9b to e99db3a

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 4, 2022

New commits:

e99db3asrc/sage/interfaces/gap.py: Reviewer edits

@vbraun
Copy link
Member

vbraun commented Dec 14, 2022

Changed branch from u/mkoeppe/rings/remove_last_is_GapElement to e99db3a

@vbraun vbraun closed this as completed in 8fe834d Dec 14, 2022
kryzar pushed a commit to kryzar/sage that referenced this issue Feb 6, 2023
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