OrderedDict

2016-05-18 Thread silver0346
Hi all, I have a understanding problem with return values from xmltodict. I have a xml file. Content: With code __f_name = '' with open(__f_name) as __fd: __doc = xmltodict.parse(__fd.read()) __doc I get OrderedDict([(u'profiles', OrderedDict([(u'profile', OrderedDict([(

Re: OrderedDict

2016-05-19 Thread silver0346
On Wednesday, May 18, 2016 at 2:25:16 PM UTC+2, Peter Otten wrote: > Chris Angelico wrote: > > > On Wed, May 18, 2016 at 7:28 PM, Peter Otten <__pete...@web.de> wrote: > >> I don't see an official way to pass a custom dict type to the library, > >> but if you are not afraid to change its source co

Re: OrderedDict

2016-06-09 Thread silver0346
On Friday, May 20, 2016 at 7:15:38 AM UTC+2, silve...@gmail.com wrote: > On Wednesday, May 18, 2016 at 2:25:16 PM UTC+2, Peter Otten wrote: > > Chris Angelico wrote: > > > > > On Wed, May 18, 2016 at 7:28 PM, Peter Otten <__pete...@web.de> wrote: > > >> I don't see an official way to pass a custom