On this page
zoneinfo.reset_tzpath
Prev: zoneinfo.InvalidTZPathWarning | Up: zoneinfo | Next: zoneinfo.ZoneInfo
Rel: zoneinfo.available_timezones, zoneinfo.InvalidTZPathWarning, zoneinfo.ZoneInfo, zoneinfo.ZoneInfoNotFoundError
Ref: docs.python.org — zoneinfo.reset_tzpath
Tags: #public #python3 #stdlib #zoneinfo
Import
import zoneinfo
from zoneinfo import reset_tzpath
Signature & Overview
zoneinfo.reset_tzpath(to=None)
Reset global TZPATH.
Usage
import zoneinfo
# Refreshes TZPATH from the PYTHONTZPATH environment variable (or custom sequence)
assert callable(zoneinfo.reset_tzpath)
Gotchas
- Only affects future
ZoneInfolookups not already cached.
REPL Inspect
from zoneinfo import reset_tzpath
help(reset_tzpath)
Linked from
Related notes
- tuts/python3/stdlib_module/zoneinfo/available_timezones Linked here; links to this page; shared tags: #stdlib, #zoneinfo
- tuts/python3/stdlib_module/zoneinfo/InvalidTZPathWarning Linked here; links to this page; shared tags: #stdlib, #zoneinfo
- tuts/python3/stdlib_module/zoneinfo/ZoneInfo Linked here; links to this page; shared tags: #stdlib, #zoneinfo
- tuts/python3/stdlib_module/zoneinfo/ZoneInfoNotFoundError Linked here; links to this page; shared tags: #stdlib, #zoneinfo
- tuts/python3/stdlib_module/zoneinfo links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib