Skip to content

Cannot save pydef-defined class #1

Open
@cstjean

Description

@cstjean
@pydef type Store
    __init__(self, a) = (self[:a] = a)
end
save("dummy.jld", "x", Store(10))
> PyError (ccall(@pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, arg, C_NULL)) <class 'cPickle.PicklingError'>
> PicklingError("Can't pickle <class 'Store'>: attribute lookup __main__.Store failed",)

I don't think anything can be done about it, though.

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