Re: [Datetime-SIG] PEP-431/495
27 Aug
2015
27 Aug
'15
7:05 a.m.
On Thu, Aug 27, 2015 at 9:12 AM, Stuart Bishop <stuart@stuartbishop.net> wrote:
But, really, I hate all the options for the flag name. I lean towards is_dst mainly because people are used to it.
Ironically, you created one of the reasons I did not want any mention of "dst" in the new attribute: the way pytz's localize() uses is_dst is so different from the way mktime() uses tm_isdst, that creating a third set of rules for a variable with a similar name was out of the question. If you have time, please re-read the answer to "Why not call the new flag 'isdst'?" [1] in the PEP and let me know if it needs any improvements. [1]: https://www.python.org/dev/peps/pep-0495/#why-not-call-the-new-flag-isdst
3361
Age (days ago)
3361
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexander Belopolsky