Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
We could just replace the This sort of strays away from the mission of having a pure-rust compiler no? |
On environments with available CPythons, that makes sense. But we are more likely on wasm targets.
This will be optional feature. Not every data is pickle-serializable. It hopefully will fill gaps until we have rust implementation for them |
60c2403 to
6699c70
Compare
| print("OK!\n") | ||
|
|
||
|
|
||
| # Test 3: import_module() with numpy |
There was a problem hiding this comment.
Now RustPython can run numpy.
Though it will not be that much practical.
ShaharNaveh
left a comment
There was a problem hiding this comment.
Overall, very cool!
I do agree that this goes against the project goal in some ways. BUT if we have it behind a feature flag (that's not on by default) then I don't see an issue with letting users choose this functionality.
As an added bonus can we state somewhere in the docs that we have (experimental) support for installing packages that use extension modules (not pure python), like pandas, numpy, pedantic, etc...?
6699c70 to
361d09b
Compare
Test code:
Test command:
This might be something awful. Now RustPython can borrow any feature from CPython, as long as CPython is in the environment and the calling function’s arguments and return type are pickle-serializable.
Will this become a new RustPython feature? Otherwise I’ll just create it outside the org repo.