[issue14455] plistlib unable to read json and binary plist files
Serhiy Storchaka
report at bugs.python.org
Sat Mar 31 09:55:16 CEST 2012
Serhiy Storchaka <storchaka at gmail.com> added the comment:
This patch is for Python 2. New features are accepted only for Python 3.3+. I ported the patch, but since I have no Mac, I can't check.
To date code was specified incorrectly.
The length of integers was calculated incorrectly. To convert integers, you can use int.from_bytes.
Objects identity was not preserved.
I'm not sure that the recognition of XML done enough. Should consider UTF-16 and UTF-32 with the BOM and without.
Need tests.
Also I'm a bit cleaned up and modernizing the code. I believe that it should be rewritten in a more object-oriented style. It is also worth to implement writer.
----------
nosy: +storchaka
Added file: http://bugs.python.org/file25077/plistlib_ext.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14455>
_______________________________________
More information about the Python-bugs-list
mailing list