#18358: a cython function that produces long given python input
---------------------------+-------------------------------------
   Reporter:  vdelecroix   |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  major        |        Milestone:  sage-6.7
  Component:  coercion     |         Keywords:
  Merged in:               |          Authors:  Vincent Delecroix
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+-------------------------------------
 I met twice the same problem which is the nedd for a standalone function
 that given a python objects return an associated long (if it makes sense).

 The following is not safe
 {{{
 cdef long f(x):
     return x
 }}}
 since `f(2/3)` would return `0` (see e.g. #18278). Moreover, one could
 expect something that would be very fast for both Python int and Sage
 integers (see #18346).

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