Skip to content

Weaker precondition for registering a new coercion #7421

@nthiery

Description

@nthiery

With the attached patch, the precondition for registering a new
coercion from P to Q with register_coercion becomes:

"no coercion into P has been queried, or no coercion from P to Q has been registered or discovered earlier"

Which is a bit weaker than the previous:

"no coercion into P has been queried"

This should still be quite safe, while covering all the formerly
problematic practical use cases coming up in the category code #5981.

CC: @sagetrac-sage-combinat @robertwb

Component: coercion

Author: Nicolas M. Thiéry

Reviewer: Robert Bradshaw

Merged: sage-4.3.alpha0

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions