PEP 431: Update from Lennart Regebro.

This commit is contained in:
Berker Peksag 2015-07-24 18:24:24 +03:00
parent 364723a503
commit e452d803e6
1 changed files with 14 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Version: $Revision$
Last-Modified: $Date$
Author: Lennart Regebro <regebro@gmail.com>
BDFL-Delegate: Barry Warsaw <barry@python.org>
Status: Draft
Status: Postponed
Type: Standards Track
Content-Type: text/x-rst
Created: 11-Dec-2012
@ -19,6 +19,19 @@ Python standard library, and also improvements to the time zone API to deal
with ambiguous time specifications during DST changes.
Postponement
============
The implementation has turned out to be exceedingly complex, due to having to
convert back and forth between the local time and UTC during arithmetic
and adjusting the DST for each arithmetic step, with ambiguous times being
particularly hard to get right.
This is likely to become much easier if the UTC timestamp is stored internally
and used for all arithmetic, and an investigation into changing the
``datetime()`` object to use UTC internally should be done.
Proposal
========