Mher Movsisyan added the comment:

I think this is not a bug. plistlib api accepts dict (not OrderedDict) and 
sorted output is a valid output. plistlib sorts dictionaries to be consistent 
with Apple's tools.

property list format [1] uses CFDictionary [2] with CFString keys. CFDictionary 
is unordered and the plist example in the format [1] is unordered too. But 
plutil [3] command sorts dictionaries. It is easy to observe by self-converting 
plist files with "plutil -convert xml1 test.plist" command.

1. 
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/plist.5.html
 

2. 
http://developer.apple.com/library/mac/#documentation/CoreFoundation/Reference/CFDictionaryRef/Reference/reference.html

3. 
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/plutil.1.html

----------
nosy: +mher.movsisyan

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

Reply via email to