#17791: allow RealSet construction from RealInterval
--------------------------+------------------------
       Reporter:  rws     |        Owner:
           Type:  defect  |       Status:  new
       Priority:  major   |    Milestone:  sage-6.6
      Component:  misc    |   Resolution:
       Keywords:          |    Merged in:
        Authors:          |    Reviewers:
Report Upstream:  N/A     |  Work issues:
         Branch:          |       Commit:
   Dependencies:          |     Stopgaps:
--------------------------+------------------------
Changes (by rws):

 * milestone:  sage-6.5 => sage-6.6


Old description:

> The current restriction makes reuse of `RealInterval`s 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
> }}}

New description:

 The current restriction makes reuse of `RealInterval`s 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`.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17791#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to