Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96598

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <random832@fastmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'correct.': 0.07; 'cc:addr:python-list': 0.09; 'modifies': 0.09; 'received:internal': 0.09; 'assume': 0.11; '"not"': 0.16; 'alexander': 0.16; 'awkward,': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'somewhere.': 0.16; 'wrote:': 0.16; 'subject:] ': 0.19; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'deployed': 0.22; 'sep': 0.22; 'sorry,': 0.22; 'subject:skip:i 10': 0.22; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'earlier': 0.27; 'least': 0.27; 'question': 0.27; '14,': 0.27; 'change,': 0.27; 'turns': 0.27; 'sentence': 0.29; 'code': 0.30; "can't": 0.32; 'true.': 0.33; 'widely': 0.35; 'but': 0.36; 'there': 0.36; 'subject:" ': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'received:10': 0.37; 'being': 0.37; 'missing': 0.37; 'received:66': 0.38; 'does': 0.39; 'subject:-': 0.39; 'some': 0.40; 'header:Message-Id:1': 0.61; 'back': 0.62; 'today,': 0.62; 'subject:there': 0.66; 'today.': 0.67; 'therefore': 0.67; 'subject:any': 0.84; 'technically': 0.91; 'subject:Are': 0.95
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=/P4fa554e9HWD38KwH5zmPLZJQY=; b=Pfd+Tw k5mWtIT+92J2I4tF+VPM+Gt4EJoowPqJS5MmxdECg454AZrBi3Z4Ksfiq3f91jTB eZSSpj3+g9mJrK0eYv1XzojaRcEmBWmw6nRbxMkZSKbqK5kvzeyww2IREJUnZeD+ BLM+xa/ypE88u1XoD/d0vf5PPu13xqoPmfeoo=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=/P4fa554e9HWD38 KwH5zmPLZJQY=; b=dYblJBbggI8AwhfniXQOsHLVexniz86N+OLkzO+Yj1uHQKW yXEtiLK3MFKqP+U5knBUeh2i9vnkvPIhA5zDpLTjyegzJa4MpXGtTc2pHExGlcd1 rZwfwTvDYR10XOFJOyf7JNTi+C8AlKQJb4LFX7zdc/HNWA0tbBvzVqJib0S4=
X-Sasl-Enc iluCsL9aqTFtgZrxIkWDaGvcPqDW5rm8IyIG9AYmBKfl 1442261330
From Random832 <random832@fastmail.com>
To Alexander Belopolsky <alexander.belopolsky@gmail.com>
Cc "Python-List" <python-list@python.org>, "datetime-sig" <datetime-sig@python.org>
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-c76b43ce
Subject Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?
Date Mon, 14 Sep 2015 16:08:50 -0400
In-Reply-To <CAP7h-xbVMAyTaM8yX3iz-td3hns7BmMRWL9qL-1WFjn=B57SCA@mail.gmail.com>
References <m2h9mzqyy7.fsf@fastmail.com> <CAExdVNm0rrxhbSONfQdor7e=9t+6Tg3hh6eFq-h0NnfdpteVYg@mail.gmail.com> <1442085362.324875.381920729.5E7A6DCE@webmail.messagingengine.com> <CAExdVNnUwRKN2q=trpnD9=mxnXvuosWKO+s5=PCfjAO45-Yugw@mail.gmail.com> <CAP7h-xYFAggqbJBNCZbYFwUqCPzW7-4Rc0x_SzgAumpFYAr6oA@mail.gmail.com> <CAExdVNmfTsqunRR_b-Q1YqWrTjsV1L5ppAoAnL7SUwgR2PFU0A@mail.gmail.com> <CAP7h-xbqq2Eu+vVO2g4WmbRJ=gmL1r9D2sWhKe=qQ8Ev-n415w@mail.gmail.com> <CAP7+vJ+1Vg21qOWAD+9R2REDnWiW4o6nj=Rh8fx3x3cAZipcdw@mail.gmail.com> <CAP7h-xbA6ZagKj+rQ_cCc8d0oK1F329AAhSjY240iiDyB4756A@mail.gmail.com> <CAExdVNnw6zfJQ_wFOurjj6kcLcbr9RgXA7kvyNPmgraMcHU4vQ@mail.gmail.com> <CAP7h-xYp=MsOcvFXNCHNkXDDGH=jcAwYSSw1WWchy5bwZKjwLA@mail.gmail.com> <201509131224.t8DCOXHO004891@fido.openend.se> <CAExdVNkN465=bWeY61PFAxpiUQ-u0p2zaqtwH8PQWyQO4Jw9Mg@mail.gmail.com> <201509131600.t8DG07e0025688@fido.openend.se> <CAExdVNm3e43mJ3tqcUc9175WssV4zeuO024svJbMTjrTab=Qew@mail.gmail.com> <201509132031.t8DKVTwJ028027@fido.openend.se> <CAExdVNkeRVgV8CXLugMgqhUSuXU=qHYSFUo24Xw83X=8tVBjCg@mail.gmail.com> <201509140827.t8E8RPqb001076@fido.openend.se> <CAExdVNn2wM8YW=Jg=aM86X6RaaVYPTioTSJ2d1gGp0k76CN3mg@mail.gmail.com> <1442257996.253100.383441705.7A0986C7@webmail.messagingengine.com> <CAP7h-xZYsqVPOZ0ndj3CAumq_Pp4uQ+AgQC5hHVPH9YA793cAg@mail.gmail.com> <1442259852.259192.383467881.5156BE88@webmail.messagingengine.com> <CAP7h-xbVMAyTaM8yX3iz-td3hns7BmMRWL9qL-1WFjn=B57SCA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.562.1442261334.8327.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1442261334 news.xs4all.nl 23815 [2001:888:2000:d::a6]:40046
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96598

Show key headers only | View raw


On Mon, Sep 14, 2015, at 15:48, Alexander Belopolsky wrote:
> On Mon, Sep 14, 2015 at 3:44 PM, Random832 <random832@fastmail.com>
> wrote:
> 
> > It is an
> > invariant that is true today, and therefore which you can't rely on any
> > of the consumers of this 12 years old widely deployed code not to assume
> > will remain true.
> >
> 
> Sorry, this sentence does not parse.  You are missing a "not" somewhere.

Nope. I am asserting that:

This invariant is true today.
Therefore, it is likely that at least some consumers of datetime will
assume it is true.
Therefore, you cannot rely on there not being any consumers which assume
it will remain true.

It's awkward, since when I go back to analyze it it turns out that the
"not" after 'code' actually technically modifies "any" earlier in the
sentence, but the number of negatives is correct. (Though, it actually
works out even without that change, since the question of *which*
consumers rely on the invariant is unknown.)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo? Random832 <random832@fastmail.com> - 2015-09-14 16:08 -0400

csiph-web