#18358: a cython function that produces long given python input
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.7
      Component:  coercion           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/18358                 |  1e7db2e21982c4d5097e0452bb19c5329ad1c40e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:14 vdelecroix]:
 > Replying to [comment:13 jdemeyer]:
 > > `OverflowError` -> `OverflowError("Integer too large to convert to C
 long")` or something like that.
 > >
 > > And obviously: doctests please.
 >
 > How? Should I use `Integer.__pow__` and `Rational.__pow__` with indirect
 doctests?
 That's actually not a bad idea. You should probably test the following
 numbers: `int(10)`, `long(10)`, `long(10^100)`, `10`, `10^100`, `QQ(10)`,
 `QQ(10^100)`, `1/2`.

--
Ticket URL: <http://trac.sagemath.org/ticket/18358#comment:15>
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