This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / utils / io / Tee / __init__

function

IPython.utils.io:Tee.__init__

source: /IPython/utils/io.py:28

Signature

def __init__(self, file_or_name: str | StringIO, mode: str = w, channel: str = stdout)

Summary

Construct a new Tee object.

Parameters

file_or_name : filename or open filehandle (writable)

File that will be duplicated

mode : optional, valid mode for open().

If a filename was give, open with this mode.

channel : str, one of ['stdout', 'stderr']

Aliases

  • IPython.utils.io.Tee.__init__