print_with_context#
- tpcp.misc.print_with_context(*values: Any, sep: str | None = ' ', end: str | None = '\n', file: Any | None = None, flush: bool = False) None[source]#
Print values with the active context and retain the original message.
Without an active
warning_error_context, this behaves exactly likeprint. With an active context, the rendered context stack is prepended to the output and a"print"record is added to every active context result. Output is suppressed when any active context usesrecord_only=True.