Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96606
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.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.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'bits': 0.07; 'cc:addr:python-list': 0.09; '"but': 0.09; 'bits.': 0.09; 'defined,': 0.09; 'indeed,': 0.09; 'received:internal': 0.09; 'python': 0.10; '"good': 0.16; 'bit.': 0.16; 'fold': 0.16; 'mean,': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'naive': 0.16; 'peters': 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; 'time"': 0.16; 'wrote:': 0.16; 'string': 0.17; 'skip': 0.18; 'subject:] ': 0.19; 'load': 0.20; 'versions': 0.20; 'cc:addr:python.org': 0.20; 'extension': 0.20; 'cc:2**1': 0.22; 'ones.': 0.22; 'sep': 0.22; 'subject:skip:i 10': 0.22; 'trying': 0.22; 'consistent': 0.23; 'passing': 0.23; "python's": 0.23; 'tim': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; "doesn't": 0.26; 'compare': 0.27; 'wonder': 0.27; '14,': 0.27; 'object,': 0.27; 'idea': 0.28; 'pickle': 0.29; 'purposes.': 0.29; '(including': 0.30; "we're": 0.30; 'version,': 0.30; 'supposed': 0.31; "can't": 0.32; '"the': 0.32; 'older': 0.32; 'list': 0.34; 'next': 0.35; 'could': 0.35; 'exist': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'subject:" ': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'really': 0.37; 'expect': 0.37; 'received:66': 0.38; 'anything': 0.38; 'why': 0.39; 'format': 0.39; 'does': 0.39; "didn't": 0.39; 'subject:-': 0.39; 'where': 0.40; 'space': 0.40; 'some': 0.40; 'future': 0.60; 'header :Message-Id:1': 0.61; 'back': 0.62; 'between': 0.65; 'subject:there': 0.66; 'talking': 0.67; 'behave.': 0.84; 'blow': 0.84; 'pickled': 0.84; 'subject:any': 0.84; 'gaps': 0.93; 'insane': 0.95; '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=MGA+suc6zsLDtmKHjFBE9zmIjL0=; b=LdIWGy KPt1djhgOwpDHk2JXUySziRxU9p32vJF6MSYFfsA7UfNmYRov21aWWlOjobf3E5I 4IbtAXLXjyrQXHfbx75WpOw2x/e1a8hdUwRH+m3CdWVazL+kUSmXLslp+dNcYXDe AmLGrm4bxVLy3X+iWAeFWXYFitzxPuOg4hT/M= |
| 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=MGA+suc6zsLDtmK HjFBE9zmIjL0=; b=i4WqhFsVmPsYM911wTfGsoJe3dgv6QOfk761SzjDdV9twQJ aIUxQuOI8mBzpRZFMsTWujJHdoEqgrJGE8oFAy5x6xazEcX2cXYwiNbgwz1EDwEo C0Cj0Y0nDtGsQ+VS+tJ6YjNduJmnpWvOAQXhBpKyk5lDQZwnJ2aZ7B2HExfs= |
| X-Sasl-Enc | i+o6Y38sOpfkbTO0yhP6i0OnYv62Dql7Vm1EBwIht4SC 1442265800 |
| From | Random832 <random832@fastmail.com> |
| To | Tim Peters <tim.peters@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 17:23:20 -0400 |
| In-Reply-To | <CAExdVNmNL4oiGWjokOmvKaWvqPdsp2kuGKYGJ-aERRB+irQU8A@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> <CAExdVN=s_V_uz9mSOtp6b6+fKjqLZHArXKUQ-ty5EYkLM5V2qw@mail.gmail.com> <1442260714.263025.383475777.4728D768@webmail.messagingengine.com> <CAExdVN=OWrFxYiuNZrWuVHfeT74VyXaUOXLKj0Q1Ai1SoupqbQ@mail.gmail.com> <1442262425.268793.383506657.0443601E@webmail.messagingengine.com> <CAExdVNmNL4oiGWjokOmvKaWvqPdsp2kuGKYGJ-aERRB+irQU8A@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.573.1442265803.8327.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1442265803 news.xs4all.nl 23767 [2001:888:2000:d::a6]:52188 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:96606 |
Show key headers only | View raw
On Mon, Sep 14, 2015, at 16:45, Tim Peters wrote: > Because all versions of Python expect a very specific pickle layout > for _every_ kind of pickled object (including datetimes).. Make any > change to the pickle format of any object, and older Pythons will > simply blow up (raise an exception) when trying to load the new pickle > - or do something insane with the pickle bits. It's impossible for > older Pythons to know anything about what "the new bits" are supposed > to mean, and there is no way to spell, in the pickle engine, "but if > you're an older version, skip over the next N bytes". Well, you could have put some reserved bits in the original pickle format for datetime back when it was first defined, or even just allowed passing in a longer string for future extension purposes. That you didn't makes me wonder just where you're finding the space to put the fold bit. > It's not so much a "good idea" as that it's the only idea consistent > with Python's "naive time" model. Folds and gaps don't exist in naive > time. Indeed, the _concept_ of "time zone" doesn't really exist in > naive time. There's _inherent_ tension between the naive time model > and the way multi-offset time zones actually behave. So it goes. But why does it need to be consistent? You can't compare naive datetimes with aware ones. If you want to sort/bisect a list of datetimes, they have to either all be naive or all be aware. So when we're talking about how ordering works, we're fundamentally talking about how it works for aware datetimes.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo? Random832 <random832@fastmail.com> - 2015-09-14 17:23 -0400
csiph-web