[issue18168] plistlib output self-sorted dictionary

2014-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue18168] plistlib output self-sorted dictionary

2013-06-10 Thread halfjuice
halfjuice added the comment: Awesome. Thanks Ronald! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18168] plistlib output self-sorted dictionary

2013-06-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm reworking the patch in #14455 and one of the things I intend to do is to add a keyword argument that controls whether or not the keys in dictionaries will be sorted by plistlib. -- ___ Python tracker

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread halfjuice
halfjuice added the comment: Thanks for giving out docs and start a detail discussion on this Mher! Sorry I'm not familiar with Apple plist tool (I'm using cocos2d-x on win32 for the moment...) Are you saying that plutil is used everytime we output a valid plist? Another thing is whether the

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread Mher Movsisyan
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 uno

[issue18168] plistlib output self-sorted dictionary

2013-06-07 Thread halfjuice
New submission from halfjuice: Even with OrderedDict, the plistlib will still output the dict in its own order. Search for sorted(d.items()) in plistlib.py and you will know why. It is certainly warm-hearted to sort this before putting it into plist file but I think sometimes we just want a cu