Parser needed.

Michael Torrie torriem at gmail.com
Thu Jun 4 13:25:55 EDT 2015


On 06/04/2015 11:14 AM, Steven D'Aprano wrote:
> On Fri, 5 Jun 2015 03:02 am, Skybuck Flying wrote:
> 
>> Yeah... my first nice parser for this kind of stuff...
>>
>> Python is really nice for this stuff...
>>
>> Piece a cake.. now I just need to stuff it in some dictionary and I am
>> done or so ;)
>>
>> Though a dictionary might be hard to traverse in sequence...
> 
> Use an ordered dict:
> 
> from collections import OrderedDict

I prefer a list of Dicts, or a list of objects you define.  That way it
keeps order, but you can have an arbitrary structure on each item




More information about the Python-list mailing list