You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.
Must be OK:
SimpleType: SimpleType(simple type)
MoreComplex: MoreComplex(more complex,List(1, 2, 3),SimpleType(simple type))
LessComplex: LessComplex(less complex,1994.23)
Must fail:
LessComplex: LessComplex(more complex,6.6738327668E-313)
SimpleType: SimpleType(more complex)
SimpleType: SimpleType(less complex)
Not a case class:
T1: T1(Hey)
T2: T1(Hey)
T1: T2(Hello,3)
T2: T2(Hello,3)
So as you can see it is possible to deserialize MoreComplex or LessComplex into SimpleType but not other way around. So how can I be sure that I unpickle it in a proper type?
Thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, could you explain me why
pickling
is able to deserialize in incorrect type, without any errors/warning? Or I'm doing something wrong?Output:
So as you can see it is possible to deserialize
MoreComplex
orLessComplex
intoSimpleType
but not other way around. So how can I be sure that Iunpickle
it in a proper type?Thanks!
The text was updated successfully, but these errors were encountered: