Python 3: Plist as OrderedDict

Raymond Hettinger python at
Tue Feb 9 08:15:57 CET 2010

On Feb 8, 8:02 pm, Gnarlodious <gnarlodi... at> wrote:
> I am trying to read a *.plist into Python 3's OrderedDict but can't
> figure it out. Saying something like this:
> I "upgraded" to Py3 to have OrderedDict, so please don't say it is
> impossible...

You may be able to monkey patch an OrderedDict into the PlistParser.
Here's an untested stab at it:

    from collections import OrderedDict
    import plistlib
    plistlib._InteralDict = OrderedDict


More information about the Python-list mailing list