-
Notifications
You must be signed in to change notification settings - Fork 1.4k
rustpython-cpython #6301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
rustpython-cpython #6301
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now RustPython can run numpy.
Though it will not be that much practical.
ShaharNaveh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.