Ronald Oussoren <ronaldousso...@mac.com> added the comment:

Year 0 does exist in ISO 8601 though, but that wouldn't help us here as year 0 
in that standard is year 1 BCE which is not representable in Python's datetime 
module.

I'm not sure what we can do about this. The best we could do with plistlib is 
probably to add an option to either set unrepresentable dates to None or 
represent those dates as strings.

A more comprehensive fix is to change datetime to be able to represent these 
dates, but that's a much larger change that likely requires a PEP.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41083>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to