June 25, 2015
3 p.m.
Eric Snow schrieb am 24.06.2015 um 06:15:
On Sun, Jun 21, 2015 at 4:40 AM, Stefan Behnel wrote:
If objects can make it explicit that they support sharing (and preferably are allowed to implement the exact details themselves), I'm sure we'll find ways to share NumPy arrays across subinterpreters. That feature alone tends to be a quick way to make a lot of people happy.
Are you thinking of something along the lines of a dunder method (e.g. __reduce__)?
Sure. Should not be the first problem to tackle here, but dunder methods would be the obvious way to interact with whatever "share/move/copy between subinterpreters" protocol there will be. Stefan