pypi / python-dateutil
python-dateutil
What changed in python-dateutil 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-22.
6 breaking1 deprecations2 new APIs and options2 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpython-dateutil 316 changes
Breaking changes 6
The mutable search-path list has been removed; use
dateutil.tz.TZPATHanddateutil.tz.reset_tzpathinstead.The function no longer does anything and raises
RebuildDeprecationWarningas an error by default.Passing a relative key that refers to a file outside every directory on
TZPATHis deprecated and raisesDeprecatedTzKeyWarningas an error by default.The minimum supported version is now 1.6, fixing
No module named 'six.moves'errors with older versions.The package no longer bundles the IANA database; data comes from the system or the installed
tzdatapackage.For times in a gap,
fold=0uses the pre-transition offset andfold=1uses the post-transition offset, following PEP 495.
Deprecations 1
The module is deprecated and now wraps
tzdata; users are encouraged to migrate todateutil.tz.gettzor the standard library'szoneinfo.
New APIs and options 2
Allows runtime configuration of the IANA time zone data search path.
Provides the time zone data search path, which can be configured at runtime.
Behavior and default changes 2
Cached instances can now be pickled and deep-copied; cache settings are preserved and cached results regenerated on demand.
Cached instances can now be pickled and deep-copied; cache settings are preserved and cached results regenerated on demand.
Fixes and other changes 5
Comparing against an unsupported type such as
Nonenow returnsTrueinstead of raisingTypeError.Experimental
X-parameters in anRRULEline are now ignored instead of raisingValueError, as RFC 5545 permits.The rewrite supports Version 2 and Version 3 tzfile binaries, resolving issues with timestamps beyond 2038 and slim format binaries.
Fixed-offset zones now return their offset, DST offset, and abbreviation when
utcoffset,dst, andtznameare called withNone, making attacheddatetime.timeobjects aware.dst()is inferred from standard time on both sides of each DST period and for each transition, fixing several double, half-hour, and changing-standard-offset cases.