Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #30830: Subintervals of OpenInterval and UniqueRepresentation
At the moment, we have the following behavior: {{{ sage: I = OpenInterval(0,2) sage: J = OpenInterval(0,1, ambient_interval=I, coordinate='t') sage: I.open_interval(0,1) Traceback (most recent call last) ... ValueError: the name '(0, 1)' is already used for another subset of the Real interval (0, 2) }}} Even though the use of `OpenInterval(0,1, ambient_interval=I)` is not intended, this is still a blind spot. The reason for this behavior comes from the `UniqueRepresentation` and how the subintervals are constructed. I propose a fix using `__classcall_private__`. URL: https://trac.sagemath.org/30830 Reported by: gh-mjungmath Ticket author(s): Michael Jung Reviewer(s): Travis Scrimshaw
- Loading branch information