On Mon, Sep 14, 2015 at 3:49 PM, Tim Peters <tim.pet...@gmail.com> wrote:

> It depends on how expensive .utcoffset()
> is, which in turn depends on how the tzinfo author implements it.
>

No, it does not.  In most time zones, UTC offset in seconds can be computed
by C code as a 4-byte integer faster than CPython can look up the
.utcoffset method. (At least for times within a few years around now.) A
programmer who makes it slower should be fired.  Yet I agree,
"'premature optimization'
applies at this time."
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to