[Datetime-SIG] PEP-495 - Strict Invalid Time Checking

Carl Meyer carl at oddbird.net
Tue Aug 25 23:01:12 CEST 2015


On 08/25/2015 02:56 PM, Alexander Belopolsky wrote:
...
> 
> The PEP 495 code may be slightly more involved, but most people can get
> away with just
> 
> dt = get_time().astimezone()
> 
> and not see any crashes.

Since nobody has argued (that I can recall) for "raise an exception" to
be the _default_ behavior, this last point will be true regardless.

Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150825/b35923e5/attachment-0001.sig>


More information about the Datetime-SIG mailing list