This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Jeff Reback, belopolsky, serhiy.storchaka, yselivanov
Date 2016-11-18.12:56:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <AFBF7660-A4E3-4ED6-8D11-8BD6EED21650@gmail.com>
In-reply-to <1479470653.35.0.392676170557.issue28730@psf.upfronthosting.co.za>
Content
> On Nov 18, 2016, at 7:04 AM, Serhiy Storchaka <report@bugs.python.org> wrote:
> 
> Yet one doubtful detail is that the fold bit is added to the hour bit in datetime.time, but to the month field in datetime.datetime.

The reason behind this choice is documented in PEP 495: "We picked these bytes because they are the only bytes that are checked by the current unpickle code. Thus loading post-PEP fold=1 pickles in a pre-PEP Python will result in an exception rather than an instance with out of range components."

https://www.python.org/dev/peps/pep-0495/#pickles
History
Date User Action Args
2016-11-18 12:56:13belopolskysetrecipients: + belopolsky, serhiy.storchaka, yselivanov, Jeff Reback
2016-11-18 12:56:13belopolskylinkissue28730 messages
2016-11-18 12:56:13belopolskycreate