chengchingwen / Pickle.jl

An experimental package for loading and saving object in Python Pickle format.
MIT License
50 stars 9 forks source link

`objtypename` should be fully-qualified name #20

Closed chengchingwen closed 2 years ago

chengchingwen commented 2 years ago

https://github.com/chengchingwen/Pickle.jl/blob/983fb8cc8711f22bca89e4d2d5c7ff8ed1663723/src/deserializer.jl#L228-L234

potential solution:

function objtypename(t)
    T = typeof(t)
    join((fullname(parentmodule(T))..., Base.typename(T).name), '.')
end