tempfile.gettempprefixb
Prev: tempfile.gettempprefix | Up: tempfile | Next: tempfile.mkdtemp
Rel: tempfile.gettempdir, tempfile.gettempdirb, tempfile.gettempprefix, tempfile.mkdtemp
Ref: docs.python.org — tempfile.gettempprefixb
Tags: #public #python3 #stdlib #tempfile
Import
import tempfile
from tempfile import gettempprefixb
Signature & Overview
tempfile.gettempprefixb()
The default prefix for temporary directories as bytes.
Usage
import tempfile
assert isinstance(tempfile.gettempprefixb(), bytes)
Gotchas
- Bytes counterpart to
gettempprefix(): Returnsb"tmp"by default for low-level bytes-path code.
REPL Inspect
from tempfile import gettempprefixb
help(gettempprefixb)
Linked from
- tuts/python3/stdlib_module/tempfile
- tuts/python3/stdlib_module/tempfile/gettempdir
- tuts/python3/stdlib_module/tempfile/gettempdirb
- tuts/python3/stdlib_module/tempfile/gettempprefix
- tuts/python3/stdlib_module/tempfile/mkdtemp
- tuts/python3/stdlib_module/tempfile/mkstemp
- tuts/python3/stdlib_module/tempfile/mktemp
- tuts/python3/stdlib_module/tempfile/NamedTemporaryFile
- tuts/python3/stdlib_module/tempfile/SpooledTemporaryFile
- tuts/python3/stdlib_module/tempfile/TemporaryDirectory
- tuts/python3/stdlib_module/tempfile/TemporaryFile
Related notes
- tuts/python3/stdlib_module/tempfile/gettempdir Linked here; links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/gettempdirb Linked here; links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/gettempprefix Linked here; links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/mkdtemp Linked here; links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tempfile/mkstemp links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/mktemp links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/NamedTemporaryFile links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/SpooledTemporaryFile links to this page; shared tags: #stdlib, #tempfile
- tuts/python3/stdlib_module/tempfile/TemporaryDirectory links to this page; shared tags: #stdlib, #tempfile