Skip to content

Replace exit(), abort() with return codes in C code called by Python and raise exceptions in Python #13

@MLopez-Ibanez

Description

@MLopez-Ibanez

Calling exit() or abort() in C code invoked by Python will kill the Python interpreter. CRAN has a way to detect theses issues in the R package.

  • Replace exit() and abort() with return error values and catch those values in Python to raise the appropriate exception.
  • Is there a tool that detects problematic C code for Python extensions like CRAN does?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions