FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove old import by palaviv · Pull Request #1102 · RustPython/RustPython · GitHub

Repository navigation

Remove old import - #1102

Merged
coolreader18 merged 4 commits into
RustPython:masterfrom
palaviv:clean-import
Jul 4, 2019
Merged

coolreader18 merged 4 commits into
RustPython:masterfrom
palaviv:clean-import

Conversation

palaviv commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

No description provided.

palaviv mentioned this pull request Jul 3, 2019
Comment thread vm/src/import.rs
import_frozen(vm, module_name)
} else if vm.stdlib_inits.borrow().contains_key(module_name) {
import_builtin(vm, module_name)
} else if cfg!(feature = "rustpython-compiler") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The point of this feature flag was to check if rustpython was built with bytecode compiler support. If not, the module cannot be loaded from disc. I think importlib.py has a similar mechanism. Please refer to the function imp_exec_builtin in imp.rs. Maybe the logic deleted here, can be replicated over there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Only the external_importers use compile now. So I changed init_importlib to not install them if there is not compiler.

Comment thread vm/src/stdlib/thread.rs Outdated
coolreader18 merged commit f8e8a12 into RustPython:master Jul 4, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL