Skip to content

Use compile::Mode::Single for the demo terminal #672

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

Merged
merged 4 commits into from
Mar 15, 2019

Conversation

coolreader18
Copy link
Member

Eventually we should use sys.displayhook, but this is fine for now.

},
)?;
// TODO: implement sys.displayhook
if let Some(print) = vm.ctx.get_attr(&vm.builtins, "print") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Pro tip: in case of an if-statement, do not forget about the else clause. What happens when we have no print? No worries for now, just a tip.

@windelbouwman windelbouwman merged commit ca47ddc into RustPython:master Mar 15, 2019
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.

2 participants