[Python-ideas] Backward-incompatible changes for Python 4

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 1 18:05:09 EDT 2019

Anders Hovmöller wrote:
> Please let's all agree that April 1 is the worst day of the year.


In light of that, I propose that the datetime module in Python 4
be changed so that April 1 does not exist:

 >>> m31 = date(2019, 3, 31)
 >>> m31 + timedelta(days = 1)
datetime.date(2019, 4, 2)

This would remove a large amount of confusion from the world, and
ensure that Python never receives any more backwards incompatible

Obviously, removing a whole day from the year will create problems
keeping the calendar in step with the seasons. To compensate, it
will be necessary to add approximately 1.25 days worth of leap
seconds to each year. This works out to about one leap second
every 5 minutes. If a suitable algorithm is devised for distributing
these "leap minutes" as evenly as possible over the year, this
should cause minimal disruption.


More information about the Python-ideas mailing list