deprecate pytz?
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Sun Mar 20 16:00:38 GMT 2022
On 2021-12-21 09:06, Marco Atzeri via Cygwin-announce wrote:
> Several python packages have been added to the Cygwin distribution
> and at the same time the updated packages for 3.6/3./3.8
> have been uploaded.
> python39-pytz 2021.3-1
Suggesting that pytz should be deprecated and eventually dropped.
There is a lot of discussion on the IANA TZ mailing list about support
of the IANA TZ DB (tzdata) in languages other than C, and there has been
discussion of the official python standard library module support of
tzdata, and the problems of correctly using pytz:
https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html
requiring close reading and following of its limitations:
https://pypi.org/project/pytz/
https://github.com/stub42/pytz
together with it being superceded by official support of IANA TZ DB with
a standard library compiled zoneinfo module built on the datetime module:
https://peps.python.org/pep-0615/
backported to 3.6+ as the backports.zoneinfo module:
https://zoneinfo.readthedocs.io/en/latest/
https://github.com/pganssle/zoneinfo/
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
More information about the Cygwin
mailing list