X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4A2393858D37
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
 spf=none smtp.mailfrom=systematicsw.ab.ca
X-Authority-Analysis: v=2.4 cv=frTP2X0f c=1 sm=1 tr=0 ts=62374fa6
 a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17
 a=IkcTkHD0fZMA:10 a=FervOb2AAAAA:8 a=CckQENj0AAAA:8 a=NEAV23lmAAAA:8
 a=8AHkEIZyAAAA:8 a=UXIAUNObAAAA:8 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10
 a=X2ezxnNiPu0A:10 a=qx50etO2t6_5grAjiQXK:22 a=-XWihg8NfbdYC9mmq4w4:22
Message-ID: <1361c3e8-113b-9855-6afb-c7c3b1d0c20e@SystematicSw.ab.ca>
Date: Sun, 20 Mar 2022 10:00:38 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.7.0
Subject: Re: deprecate pytz?
Content-Language: en-CA
To: cygwin@cygwin.com
References: <announce.05411ee6-face-7470-82b1-68a7d2870d68@gmail.com>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Organization: Systematic Software
In-Reply-To: <announce.05411ee6-face-7470-82b1-68a7d2870d68@gmail.com>
X-CMAE-Envelope: MS4xfKmEf27r7dGwWjUvZCrzCOrLQcVD2lxgUW/lFIp6wRTOrO7ghJwvuXqALIdUXXlqeO5Cjgln007XoKpQjAixS7EBlLRdxL6k7+3/S6R4+sL/Od3ZGdx2
 rpCKPJzdopcaBtOAxAniMrIAK8SpBQvg8OZLWomUhhDu7yPLFB49WV4rERqk1p1F8qeidwUeca0/cgoq1CiDRGmOLYzswmxvS9s=
X-Spam-Status: No, score=-1162.6 required=5.0 tests=BAYES_00, BODY_8BITS,
 KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, NICE_REPLY_A,
 RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
 SPF_NONE, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 22KG0ubE010319

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.]

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

