-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Bug] REPL auto-import does not work. #741
Comments
While we are doing this, we could consider importing everything, including those from MicroPython modules. I'll have a look at the RAM cost. |
On Prime Hub, when importing everything:
When importing only pybricks modules (+36 bytes build size for the check):
So, about 1.2K extra heap used for importing everything from the (currently included) MicroPython modules. Now check on Move Hub. Oh wait, no REPL. 😆 So I think we can just import everything. If anyone ever needs the REPL and use RAM to the limits, they can just run an empty script that raises the KeyboardInterrupt. |
Are we sure that there are and never will be name conflicts for importing * from *? It seems like it would be safer to import * from pybricks modules but import module for everything else. |
OK, I'll restore importing Pybricks modules only. |
I like the idea of importing the other modules too. Maybe we could import * if module starts with pybricks else import module? |
Sure. Will do that tomorrow. |
|
can this be closed now? |
Yes. |
When starting the REPL, everything in the
pybricks
package is supposed to be pre-imported.This no longer works because:
and the modules are no longer included in
pybricks_globals_table
.The text was updated successfully, but these errors were encountered: