Skip to content

module eval should be eval(m, expr) instead of eval(expr) in seval #178

Closed
@Roger-luo

Description

@Roger-luo

If you create new Julia module

import juliacall as jl

m = jl.newmodule("TestModule")
m.seval("1 + 1")

will not work because m doesn't have eval(::Expr) defined, but only have eval(::Module, ::Expr) this is because the module created using Module doesn't have eval(::Expr) defined. I'm not sure if we should just generate this method manually, but I think if we use Base.eval(::Module, ::Expr) it will always work at least.

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