[Datetime-SIG] pytz vs. PEP 495 Was: PEP-431/495

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Aug 24 22:44:25 CEST 2015

On Mon, Aug 24, 2015 at 4:28 PM, ISAAC J SCHWABACHER <ischwabacher at wisc.edu>

> [ijs]
> I *really* hope the answer to this one is, "don't do that".

That's not an option because people already *do* [1] that and they won't
stop.  Neither they will stop using datetime.combine() [2] or
datetime.replace() [3] or tolerate if those methods start raising

I am giving examples from datetime.py which in theory we can change, but
what we use in datetime.py is likely to be used in user code as well.

[1]: https://hg.python.org/cpython/file/v3.5.0rc1/Lib/datetime.py#l1476
[2]: https://hg.python.org/cpython/file/v3.5.0rc1/Lib/datetime.py#l1734
[3]: https://hg.python.org/cpython/file/v3.5.0rc1/Lib/datetime.py#l1540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150824/e39029d3/attachment.html>

More information about the Datetime-SIG mailing list