(*args, **kwds)
Context manager that creates a named temporary file and
    returns its name.

    All parameters are passed on to ``tempfile.mkstemp``, see
    its documentation for more info.
Context manager that creates a named temporary file and
    returns its name.
Context manager that creates a named temporary file and returns its name .
def named_temporary_file(*args, **kwds):
    """Context manager that creates a named temporary file and
    returns its name.

    All parameters are passed on to ``tempfile.mkstemp``, see
    its documentation for more info.
    """
    handle, tmpfile = tempfile.mkstemp(*args, **kwds)
    os.close(handle)
    try:
        yield tmpfile
    finally:
        os.unlink(tmpfile)
def named_temporary_file ( * args , * * kwds ) : handle , tmpfile = tempfile . mkstemp ( * args , * * kwds ) os . close ( handle ) try : yield tmpfile finally : os . unlink ( tmpfile )