You are viewing an older version (9.3.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.3.0 / IPython / utils / tempdir / NamedFileInTemporaryDirectory / __init__

function

IPython.utils.tempdir:NamedFileInTemporaryDirectory.__init__

source: /IPython/utils/tempdir.py :13

Signature

def   __init__ ( self filename mode bufsize = -1 add_to_syspath = False ** kwds )

Summary

Open a file named filename in a temporary directory.

Extended Summary

This context manager is preferred over NamedTemporaryFile in stdlib tempfile when one needs to reopen the file.

Arguments mode and bufsize are passed to open. Rest of the arguments are passed to TemporaryDirectory.

Aliases

  • IPython.utils.tempdir.NamedFileInTemporaryDirectory.__init__