[issue14455] plistlib unable to read json and binary plist files

Ronald Oussoren report at bugs.python.org
Thu Dec 19 16:22:57 CET 2013


Ronald Oussoren added the comment:

Conversion to XML results in:

$ plutil -convert xml1 -o - 18446744073709551615.plist 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>a</key>
	<integer>18446744073709551615</integer>
</dict>
</plist>

This is the same as what I get with my latest patch:

>>> import plistlib
>>> plistlib.load(open('18446744073709551615.plist', 'rb'))
__main__:1: ResourceWarning: unclosed file <_io.BufferedReader name='18446744073709551615.plist'>
{'a': 18446744073709551615}

(and I have check that I can create a binary plist with a negative integer in this shell session)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14455>
_______________________________________


More information about the Python-bugs-list mailing list