Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
change recursive pushout to common_parent (to take care of direct coe…
Browse files Browse the repository at this point in the history
…rcions)
  • Loading branch information
dkrenn committed Aug 23, 2015
1 parent 7f56908 commit 3cacc52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/categories/pushout.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,9 @@ def common_base(self, other_functor, self_bases, other_bases):
self._raise_common_base_exception_(
other_functor, self_bases, other_bases,
'Functors need the same number of arguments')
Z_bases = tuple(pushout(S, O) for S, O in zip(self_bases, other_bases))
from sage.structure.element import get_coercion_model
Z_bases = tuple(get_coercion_model().common_parent(S, O)
for S, O in zip(self_bases, other_bases))
return self(Z_bases)


Expand Down

0 comments on commit 3cacc52

Please sign in to comment.