Factory class providing output (print) functions.
Example:
>>> output = Output( 'sfepy:' )
>>> output( 1, 2, 3, 'hello' )
>>> output.prefix = 'my_cool_app:'
>>> output( 1, 2, 3, 'hello' )
Methods
copy | |
fd_close | |
fd_open | |
get_dict | |
get_output_function | |
get_output_prefix | |
init_trait | |
objects_from_dict | |
report | |
set_default_traits | |
set_output | |
set_output_prefix |
Set the output function - all SfePy printing is accomplished by it. If filename is None, output is to screen only, otherwise it is to the specified file, moreover, if combined is True, both the ways are used.
Prints the line number and waits for a keypress.
If you press: “q” ............. it will call sys.exit() any other key ... it will continue execution of the program
This is useful for debugging.
Waits for a keypress.
If you press: “q” ............. it will call sys.exit() any other key ... it will continue execution of the program
This is useful for debugging. This function is called from pause().