Opened 6 years ago

Last modified 4 years ago

#17791 new defect

allow RealSet construction from RealInterval

Reported by: rws Owned by:
Priority: major Milestone: sage-6.6
Component: basic arithmetic Keywords:
Cc: mkoeppe Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by rws)

The current restriction makes reuse of RealIntervals difficult and makes no sense anyway.

sage: ri=RealInterval(10,11)
sage: RealSet(ri)
/home/ralf/sage/local/lib/python2.7/site-packages/sage/sets/real_set.pyc in __classcall__(cls, *args)
    634                 intervals.extend(arg._intervals)
    635             else:
--> 636                 raise ValueError(str(arg) + ' does not determine real interval')
    637         intervals = RealSet.normalize(intervals)
    638         return UniqueRepresentation.__classcall__(cls, intervals)

ValueError: 11.? does not determine real interval

Not to be confused with #17799 which is about sage.sets.real_set.RealInterval.

Change History (3)

comment:1 Changed 6 years ago by rws

  • Description modified (diff)
  • Milestone changed from sage-6.5 to sage-6.6

comment:2 Changed 5 years ago by mkoeppe

  • Cc mkoeppe added

comment:3 Changed 4 years ago by rws

  • Component changed from misc to basic arithmetic
Note: See TracTickets for help on using tickets.