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 shields-fn
Recipients christian.heimes, ned.deily, ronaldoussoren, shields-fn
Date 2020-06-23.17:24:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592933091.58.0.133289007194.issue41083@roundup.psfhosted.org>
In-reply-to
Content
You're correct that there is no year 0, but as you see Apple does use <date>0000-12-30T00:00:00Z</date> in their plists. I did not set that in order to test plistlib; it's what I found on my system.

If it's a goal that plistlib be able to parse system-generated plists and round-trip them to an equivalent serialization -- and I think that should be a goal -- then using strings or None also won't work. Maybe there could be a plistlib.Datetime for dates which are outside what datetime can represent?
History
Date User Action Args
2020-06-23 17:24:51shields-fnsetrecipients: + shields-fn, ronaldoussoren, christian.heimes, ned.deily
2020-06-23 17:24:51shields-fnsetmessageid: <1592933091.58.0.133289007194.issue41083@roundup.psfhosted.org>
2020-06-23 17:24:51shields-fnlinkissue41083 messages
2020-06-23 17:24:51shields-fncreate