print/input
The print and input methods are imported from pacu_main, and they are used to override the default print and input methods that come with Python. Both overrides allow for any text or output that is printed to the screen to also be written to the Pacu activity log. They add a few arguments as well, which let you customize how things will be printed. For instance, perhaps you just want to print something to the command log, but not the screen; in this case, you could use the output='file' argument. Or, maybe you want to only print to the output to the screen, but keep it out of the command log, in which case you could use the output='screen' argument.
The print command will also accept JSON dictionaries as its value, where it will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access