On this page
  1. tempfile.gettempprefix
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

tempfile.gettempprefix

Prev: tempfile.gettempdirb | Up: tempfile | Next: tempfile.gettempprefixb
Rel: tempfile.gettempdir, tempfile.gettempdirb, tempfile.gettempprefixb, tempfile.mkdtemp
Ref: docs.python.org — tempfile.gettempprefix
Tags: #public #python3 #stdlib #tempfile


Import

import tempfile
from tempfile import gettempprefix

Signature & Overview

tempfile.gettempprefix()

The default prefix for temporary directories as string.

Usage

import tempfile

prefix = tempfile.gettempprefix()
assert isinstance(prefix, str) and len(prefix) > 0

Gotchas

REPL Inspect

from tempfile import gettempprefix
help(gettempprefix)

Linked from

Related notes