New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a cython function that produces long given python input #18358
Comments
comment:1
That's not a bug report, but a support request. If you post this to |
comment:3
Replying to @jdemeyer:
https://groups.google.com/forum/#!topic/sage-support/0ATjCgQlq4c |
comment:4
In view of your answer on sage-support, it might still be worth to have something along
It would be faster for Python ints and Sage integers. Vincent |
comment:5
For Python For |
comment:7
Replying to @jdemeyer:
It does! It's called |
Branch: u/vdelecroix/18358 |
comment:9
Here is an experimental branch with a macro It is used in
against
Vincent New commits:
|
Commit: |
comment:11
|
comment:12
|
comment:13
And obviously: doctests please. |
comment:14
Replying to @jdemeyer:
How? Should I use |
comment:16
It would make sense to merge 6.7.beta4 and replace all occurances of |
comment:17
Replying to @jdemeyer:
It might not be good everywhere as the overflow might not be appropriate. I will have a look at occurrences. |
comment:19
Rebased on sage-6.7.beta4. I used Vincent |
comment:20
In |
comment:21
You're not actually using this:
|
comment:22
I would prefer to replace
by
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Jeroen Demeyer |
comment:25
Two more points:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:29
I didn't run doctests again, but positive_review assuming that they pass. |
Changed branch from u/vdelecroix/18358 to |
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
since
f(2/3)
would return0
(see e.g. #18278). Moreover, one could expect something that would be very fast for both Python int and Sage integers (see #18346).CC: @nathanncohen
Component: coercion
Author: Vincent Delecroix
Branch/Commit:
6b46fee
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/18358
The text was updated successfully, but these errors were encountered: