sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.46k stars 482 forks source link

Allow copying algebraic closure of finite field #38994

Open user202729 opened 4 days ago

user202729 commented 4 days ago

Fixes https://github.com/sagemath/sage/issues/38988

I choose to make the copy return itself, because that's what GF(p) does at the moment anyway, and the field is immutable.

Not sure how much of a hack for me to implement __copy__ and __deepcopy__ instead of __reduce__, but pickling and unpickling at the moment works well anyway (although it returns a different instance)

:memo: Checklist

:hourglass: Dependencies

github-actions[bot] commented 4 days ago

Documentation preview for this PR (built with commit f7e45486319469418089eed912283901a706ebdc; changes) is ready! :tada: This preview will update shortly after each push to this PR.