[Datetime-SIG] PEP-0500 (Alternative datetime arithmetic) Was: PEP 495 ... is ready ...

Chris Barker chris.barker at noaa.gov
Wed Aug 19 18:21:29 CEST 2015

On Tue, Aug 18, 2015 at 4:12 PM, Guido van Rossum <guido at python.org> wrote:

>   At the end of the day, I will not be surprised if aware datetime
>> subtraction is 10x slower than naive and every Python textbook recommends
>> to avoid doing arithmetic with aware datetime objects.
> I doubt it. Most textbooks aren't that concerned with saving a few cycles.
> (Do most Python textbooks even discuss the cost of object creation or
> function calls?) Anyways, wouldn't PEP 500 be even slower?

and the folks that DO care about performance will probaly want to use
numpy's datetime64 anyway :-)



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150819/78b03fb7/attachment.html>

More information about the Datetime-SIG mailing list