limitations/print.md
print()Output always goes to the host via a print callback (vm.print_writer).
The host decides where it ends up — there is no real sys.stdout
underneath (see sys.md).
sep=... — separator between arguments. None falls back to a single
space. Must be a str or None; otherwise TypeError.end=... — appended after the last argument. None falls back to "\n".
Must be a str or None; otherwise TypeError.file=... — explicitly rejected with TypeError: "print() 'file' argument is not supported". Code that does print(..., file=sys.stderr)
will not work; sys.stderr is an opaque marker (see sys.md).flush=... — silently accepted but ignored. Monty does not buffer print
output; the host receives each call immediately.TypeError: ... unexpected keyword argument.py_str (equivalent to
str(x)) before being written.print() calls if the host
interleaves with other output.