Skip to content

Fix cdef functions with unraisable exceptions #37889

@tornaria

Description

@tornaria
          A `noexcept` function should not call any function that could raise an exception. This includes any python function. As you see below, there are 572 cases of this. PR #37792 fixes one :fearful: 
warning: ./sage/libs/ntl/ntl_GF2X_linkage.pxi:28:5: Unraisable exception in function 'sage.rings.polynomial.polynomial_gf2x.celement_new'.
[...]
warning: sage/symbolic/pynac_impl.pxi:817:5: Unraisable exception in function 'sage.symbolic.expression.py_get_serial_for_new_sfunction'.

Source: build with show_all_warnings=True and sort -u to remove duplicates. The one fixed in #37792 is in line 232.

Originally posted by @tornaria in #37792 (comment)

Cc: @dimpase

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions