Skip to content

Use dependency inversion to get rid of delayed import in eval_expr #49

@r41k0u

Description

@r41k0u

In

from pythonbpf.helper import HelperHandlerRegistry, handle_helper_call
We have a delayed import as a quick fix for handling helpers within eval_expr.

It makes sense to have a single eval_expr handle all expressions, but these two components are somewhat tightly coupled. Having them in the same file will make things ugly.

We must use dependency inversion to get rid of this coupling and the delayed import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwishlistStuff we want but there are more important things

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions