Serhiy Storchaka added the comment:
I see that plistlib incorrectly writes large ints from 2**63 to 2**64-1 as
negative values.
>>> d = plistlib.dumps({'a': 18446744073709551615}, fmt=plistlib.FMT_BINARY)
>>> plistlib.loads(d)
{'a': -1}
My patch did this correct (as 128-bit integer), and as you can see the produced
file is accepted by Apple's plutil.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com