Lines Matching refs:tempfile
1 :mod:`tempfile` --- Generate temporary files and directories
4 .. module:: tempfile
9 **Source code:** :source:`Lib/tempfile.py`
45 :ref:`tempfile-examples`). On completion of the context or
65 .. audit-event:: tempfile.mkstemp fullpath tempfile.TemporaryFile
90 .. audit-event:: tempfile.mkstemp fullpath tempfile.NamedTemporaryFile
125 :ref:`tempfile-examples`). On completion of the context or destruction
143 .. audit-event:: tempfile.mkdtemp fullpath tempfile.TemporaryDirectory
194 .. audit-event:: tempfile.mkstemp fullpath tempfile.mkstemp
220 .. audit-event:: tempfile.mkdtemp fullpath tempfile.mkdtemp
315 Here are some examples of typical usage of the :mod:`tempfile` module::
317 >>> import tempfile
320 >>> fp = tempfile.TemporaryFile()
330 >>> with tempfile.TemporaryFile() as fp:
339 >>> with tempfile.TemporaryDirectory() as tmpdirname: