Skip to content
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

Modernize NTL error handler #17784

Closed
jdemeyer opened this issue Feb 15, 2015 · 14 comments
Closed

Modernize NTL error handler #17784

jdemeyer opened this issue Feb 15, 2015 · 14 comments

Comments

@jdemeyer
Copy link

Move the NTL error handler out of c_lib to a Cython module. Also create a new exception class NTLError (inheriting from RuntimeError to not break backwards compatibility). All this is completely analogous to the PARI error handler.

CC: @pjbruin @defeo

Component: c_lib

Author: Jeroen Demeyer

Branch/Commit: 7f5bb61

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/17784

@jdemeyer jdemeyer added this to the sage-6.5 milestone Feb 15, 2015
@jdemeyer
Copy link
Author

Branch: u/jdemeyer/ticket/17784

@jdemeyer
Copy link
Author

Commit: 564f839

@jdemeyer
Copy link
Author

New commits:

564f839Move NTL error handler to Cython

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 16, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

e11e0e8Rename ntl/handle_error.pyx to ntl/error.pyx

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 16, 2015

Changed commit from 564f839 to e11e0e8

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 16, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

4546327Add doctest to make coverage script happy

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 16, 2015

Changed commit from e11e0e8 to 4546327

@tscrim
Copy link
Collaborator

tscrim commented Mar 3, 2015

comment:6

Given the new .pxd file, do we still need the setup_NTL_error_callback as defined in c_lib/src/ntl_wrap.cpp and c_lib/include/ntl_wrap.h?

Also you're missing a colon in EXAMPLES: in setup_NTL_error_callback().

@jdemeyer
Copy link
Author

jdemeyer commented Mar 3, 2015

comment:7

Replying to @tscrim:

Given the new .pxd file, do we still need the setup_NTL_error_callback as defined in c_lib/src/ntl_wrap.cpp and c_lib/include/ntl_wrap.h?

No, we no longer need that function. But removing ntl_wrap will be a different ticket.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 3, 2015

Changed commit from 4546327 to 7f5bb61

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 3, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

7f5bb61Fix docstring formatting

@tscrim
Copy link
Collaborator

tscrim commented Mar 3, 2015

comment:9

Alright, positive review then.

@tscrim
Copy link
Collaborator

tscrim commented Mar 3, 2015

Reviewer: Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented Mar 3, 2015

Changed branch from u/jdemeyer/ticket/17784 to 7f5bb61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants