Hello,

Do any core developers or uses have guidance on how to resolve PR #3188 (
https://github.com/numpy/numpy/pull/3188) in relation to the pickling
behavior of array scalar objects?

To summarize, pickling array scalars with object fields, which are produced
when indexing record arrays with object fields, stores the object address
instead of pickling the referenced object. This behavior, obviously,
results in invalid references on unpickling.

Two current options are to:
A) Raise an exception on pickling scalars with object fields.
B) Transparently convert scalars to zero-rank arrays on pickling, which
pickle properly.

Unless there are objections or opinions on potential solutions, I am
inclined to implement A.

Thanks,
Alex Ford
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to