sage.categories.pushout.type_to_parent: Reimplement using py_scalar_parent
Closed this issue · 9 comments
mkoeppe commented
type_to_parent seems to be a less complete implementation of py_scalar_parent.
The change on this ticket helps get rid some explicit imports from sage.rings.
CC: @tscrim @mezzarobba
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: 4b37cc6
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/29880
mkoeppe commented
mkoeppe commented
Description changed:
---
+++
@@ -1,2 +1,3 @@
`type_to_parent` seems to be a less complete implementation of `py_scalar_parent`.
+The change on this ticket helps get rid some explicit imports from `sage.rings`.mkoeppe commented
New commits:
4b37cc6 | sage.categories.pushout.type_to_parent: Reimplement using py_scalar_parent |
mkoeppe commented
Author: Matthias Koeppe
tscrim commented
Reviewer: Travis Scrimshaw
tscrim commented
comment:3
A good example of needing to DRY things out. ahem
Green patchbot => positive review.
mkoeppe commented
comment:4
Thanks!
vbraun commented
Changed branch from u/mkoeppe/sage_categories_pushout_type_to_parent__reimplement_using_py_scalar_parent to 4b37cc6