#18358: a cython function that produces long given python input
----------------------------+----------------------------------------------
Reporter: | Owner:
vdelecroix | Status: positive_review
Type: | Milestone: sage-duplicate/invalid/wontfix
enhancement | Resolution:
Priority: major | Merged in:
Component: coercion | Reviewers:
Keywords: | Work issues:
Authors: Vincent | Commit:
Delecroix | Stopgaps:
Report Upstream: N/A |
Branch: |
Dependencies: |
----------------------------+----------------------------------------------
Comment (by jdemeyer):
For Python `int`s, there will not be much difference (calling
`PyNumber_Index(x)` on an `int` just returns `x`, so the only overhead is
a function call and some reference counting).
For `Integer`, there is a larger gain. It's just annoying that Python
doesn't allow defining a fast conversion `ArbitraryType` -> C `long`.
--
Ticket URL: <http://trac.sagemath.org/ticket/18358#comment:5>
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.