[Datetime-SIG] PEP 495 Q & A

Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Aug 25 21:46:19 CEST 2015


On Tue, Aug 25, 2015 at 3:39 PM, Carl Meyer <carl at oddbird.net> wrote:
>
> Another possible name for the flag/index just occurred to me: what about
> `which`?

That was in my very first proposal:

"""
In other words, instead of localtime(dt, isdst=-1), we may want
 localtime(dt, which=0) where "which" is used to resolve the ambiguity:
"which=0" means return the first (in UTC order) of the two times and
"which=1" means return the second.  (In the non-ambiguous cases "which" is
ignored.)
"""  -- https://mail.python.org/pipermail/python-dev/2015-April/139099.html

The name did not catch up.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150825/945cb659/attachment.html>


More information about the Datetime-SIG mailing list