Re: parsing of structured text

2010-10-28 Thread Robert Fendt
On 28 Okt., 05:59, Kushal Kumaran wrote: > Using code someone else has already written would qualify as pythonic, IMO. > > http://pypi.python.org/pypi/vobject That seems to do what I need, thank you. I seem to have been a bit blind when I looked for existing packages. Of course, using vobject "o

Re: parsing of structured text

2010-10-27 Thread Kushal Kumaran
On Thu, Oct 28, 2010 at 1:33 AM, Robert Fendt wrote: > Hi all, > > I have to parse a file containing (slightly erroneous) vCal data. The > format of vCal/iCal is that of a structured ASCII file, not unlike XML > in a way. A vCal block contains information on a line-by-line basis, > with the possib

parsing of structured text

2010-10-27 Thread Robert Fendt
Hi all, I have to parse a file containing (slightly erroneous) vCal data. The format of vCal/iCal is that of a structured ASCII file, not unlike XML in a way. A vCal block contains information on a line-by-line basis, with the possibility of sub-blocks (for events). BEGIN:VCALENDAR VERSION:1.0 BE