Closed m-ou-se closed 3 years ago
Are there really many objects that can benefit from IntoPyObject
? I imagine most things will need to copy their data anyway. It's also a waste to consume something from the rust scope if the data is still getting copied.
We should probably use
IntoPyObject
instead. Right now we're usingToPyObject
, which will clone data. But we should first investigate if there are any downsides.