Skip to content

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