collective / icalendar

icalendar parser library for Python
https://icalendar.readthedocs.io
Other
1k stars 172 forks source link

Lazy parsing #158

Open untitaker opened 9 years ago

untitaker commented 9 years ago

Icalendar currently raises exceptions on minor things like invalid datetimes as described in https://github.com/collective/icalendar/issues/155. I think iCalendar could parse property values lazily, i.e. when Component.__getitem__ is called, since some broken properties shouldn't stop the user from accessing the rest.

untitaker commented 9 years ago

It also would help with the performance problems I have when manipulating iCalendar files in a way that doesn't involve properties at all. E.g. in vdirsyncer I had to write my own parser, both due to performance and tolerance of broken items.

thet commented 9 years ago

+1, sounds like a good enhancement.