Hello,
I am having problems serializing a class instance which uses a variable of type ROOT.Long
. A MWE reproducing the problem in an interactive python shell is:
import ROOT
import pickle
pickle.dump(ROOT.Long(), open('test.pkl', 'wb'), protocol=2)
which results in:
PicklingError: Can't pickle <type 'ROOT.long'>: it's not found as ROOT.long
Why is this? Can it have something to do with the Long
/ long
name mismatch?
I would be grateful for any suggestion!
Cheers,
Elena