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
Misc improvements to integer.pyx #10596
Comments
This comment has been minimized.
This comment has been minimized.
Attachment: trac-10596.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:5
I had the following failures to apply, 4.6.1.rc1 on OS X.
|
comment:6
I had the same thing happen as well. |
Reviewer: Aly Deines |
comment:8
I'm sorry, I think this is because I was working on this with 4.6.0 rather than 4.6.1.rc0. I will fix that this morning. Sebastian |
Attachment: trac-10596-461rc0.patch.gz Version for 4.6.1.rc0 |
comment:9
All tests pass for me. There's some of code I don't understand . . . so I'm not giving this a positive review. |
comment:10
integer.pyx: |
comment:11
Hi Sebastian, Hope you're well. Trivial comment: it's the done thing to put full names, not trac usernames, in the Author and Reviewer fields because they're used for compiling the release notes. Less trivial: can you perhaps do a micro-patch that gets rid of the unused variable in ndigits? The rest of the code looks fine to me, and it would be good to get this positively reviewed soon, because any patch that changes quite so many lines of code is going to be highly vulnerable to bitrotting (it already conflicts with my patch at #10625, sigh). Regards, David |
Changed author from spancratz to Sebastian Pancratz |
comment:12
Replying to @loefflerd:
Bitrotting happened: failed to apply trac-10596-461rc0.patch on sage-4.6.2.alpha4 |
comment:13
Rebased the patch by spancratz and added a patch that removes some trailing whitespaces. Apply trac_10596_remove_trailing_whitespaces.patch after trac_10596.patch |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_10596.patch.gz Attachment: trac_10596_remove_trailing_whitespaces.patch.gz |
comment:16
I removed the ndigits() part because problem was fixed in #11796. |
This comment has been minimized.
This comment has been minimized.
comment:17
The patches apply cleanly to 4.8.alpha4: but there are quite a few warning on rebuilding, about variables being referenced before assignment. Does this matter? |
comment:18
Replying to @JohnCremona:
All tests pass and docbuild is clean. I would give a positive review were it not for those warnings. If someone knows that they are not serious, please tell me. |
Changed reviewer from Aly Deines to Aly Deines, John Cremona |
comment:19
Replying to @JohnCremona:
The warnings seem not to be caused by this patch at since when I popped the patch and rebuilt they came up again. So, do they matter? |
comment:20
Warnings are caused by lines like
This seems to be a Cython problem, see http://trac.cython.org/cython_trac/ticket/714 and http://mail.python.org/pipermail/cython-devel/2011-September/001437.html, so warnings shouldn't matter. |
comment:21
See also #11761 comment:17. |
comment:22
Replying to @JohnCremona:
And #11761 shows that the warnings are ok. |
Changed author from Sebastian Pancratz to Sebastian Pancratz, André Apitzsch |
Merged: sage-5.0.beta0 |
comment:26
Apply trac_10596.patch, trac_10596_remove_trailing_whitespaces.patch (for the patchbot, so it understands the prerequisites for building #12116 against Sage 4.8) |
Generic code clean-up such as line breaks, empty lines, use of GMP functions etc
Before:
After:
Apply attachment: trac_10596.patch, attachment: trac_10596_remove_trailing_whitespaces.patch
CC: @sagetrac-jthurber @zimmermann6
Component: basic arithmetic
Author: Sebastian Pancratz, André Apitzsch
Reviewer: Aly Deines, John Cremona
Merged: sage-5.0.beta0
Issue created by migration from https://trac.sagemath.org/ticket/10596
The text was updated successfully, but these errors were encountered: