Module out
source code
out [-t] [-a FILENAME] [-f FILENAME] [-c | FORMAT]
Input objects are printed and also passed on as output. Objects are
printed to stdout, or if FILENAME is specified,
to the named file. The FILENAME may be specified using the
-a flag or the -f flag, but not both. -a will
append the file, while -f will overwrite.
The output string is generated by applying str() to the
input object, unless FORMAT is specified, in which case the
object is formatted using the % operator. -c is
another formatting option, specifying that output should be generated in
CSV format (comma-separated values).
-t indicates that out is 'terminal' -- no objects are
sent to the output stream.
|
|
out(file=None,
append=None,
format=None,
csv=False,
terminal=False)
Prints input objects. |
source code
|
|
out(file=None,
append=None,
format=None,
csv=False,
terminal=False)
| source code
|
Prints input objects. Each input object is rendered as a string,
printed, and passed on as output (unless terminal is true).
The format of the object is the default (obtained by applying
str), determined by format if specified. The
comma-separated values format is used if csv is true.
Output is written to stdout unless a filename is specified
using append or file. append
causes output to be appended to the named file, while file
causes the file to be created or replaced.
|