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

tempfile.gettempdirb

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


Import

import tempfile
from tempfile import gettempdirb

Signature & Overview

tempfile.gettempdirb()

Returns tempfile.tempdir as bytes.

Usage

import tempfile

raw_dir = tempfile.gettempdirb()
assert isinstance(raw_dir, bytes) and len(raw_dir) > 0

Gotchas

REPL Inspect

from tempfile import gettempdirb
help(gettempdirb)

Linked from

Related notes