On this page
zoneinfo.InvalidTZPathWarning
Prev: zoneinfo.available_timezones | Up: zoneinfo | Next: zoneinfo.reset_tzpath
Rel: zoneinfo.available_timezones, zoneinfo.reset_tzpath, zoneinfo.ZoneInfo, zoneinfo.ZoneInfoNotFoundError
Ref: docs.python.org โ zoneinfo.InvalidTZPathWarning
Tags: #public #python3 #stdlib #zoneinfo
Import
import zoneinfo
from zoneinfo import InvalidTZPathWarning
Signature & Overview
zoneinfo.InvalidTZPathWarning(...)
Warning raised if an invalid path is specified in PYTHONTZPATH.
Methods & Attributes
InvalidTZPathWarning.add_note(self, note, /)โ Add a note to the exceptionInvalidTZPathWarning.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import zoneinfo
assert issubclass(zoneinfo.InvalidTZPathWarning, RuntimeWarning)
Gotchas
- Emitted when
PYTHONTZPATHcontains a relative path (ignored for security).
REPL Inspect
from zoneinfo import InvalidTZPathWarning
help(InvalidTZPathWarning)
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/reset_tzpath 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