sagemath/sage

sage.categories.pushout.type_to_parent: Reimplement using py_scalar_parent

Closed this issue · 9 comments

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

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`.

New commits:

4b37cc6sage.categories.pushout.type_to_parent: Reimplement using py_scalar_parent

Author: Matthias Koeppe

Commit: 4b37cc6

Reviewer: Travis Scrimshaw

comment:3

A good example of needing to DRY things out. ahem

Green patchbot => positive review.

comment:4

Thanks!