Re: Object oriented storage with validation

2005-04-25 Thread Ilpo Nyyssönen
Ville Vainio <[EMAIL PROTECTED]> writes: >> "Ilpo" == Ilpo Nyyssönen writes: > > Ilpo> Pickle doesn't have validation. I am not comfortable for > Ilpo> using it as storage format that should be reliable over > Ilpo> years when the program evolves. It also doesn't tell me if > > Th

Re: Object oriented storage with validation

2005-04-25 Thread Ilpo Nyyssönen
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Ilpo Nyyssönen wrote: > >> What is the point in doing validation if it isn't done every time? Why >> wouldn't I do it every time? It isn't that slow thing to do. > > DTD validation is useful in two cases: [...] I didn't mention DTD validation. Yes, I

Re: Object oriented storage with validation (was: Re: Caching compiled regexps across sessions (was Re: Regular Expressions - Python vs Perl))

2005-04-24 Thread Ville Vainio
> "Ilpo" == Ilpo NyyssÃnen writes: Ilpo> Pickle doesn't have validation. I am not comfortable for Ilpo> using it as storage format that should be reliable over Ilpo> years when the program evolves. It also doesn't tell me if That's why you should implement xml import/export mecha

Re: Object oriented storage with validation (was: Re:Cachingcompiled regexps across sessions (was Re: RegularExpressions- Python vs Perl))

2005-04-24 Thread Fredrik Lundh
no wait, *three* validating parsers/validators for ET http://online.effbot.org/2005_02_01_archive.htm#elementrxp http://codespeak.net/lxml/ http://www.leuthe.homepage.t-online.de/minixsv/minixsv_overview.html parse(os.popen("xmllint --valid %s" % filename))... I'll come in again.

Re: Object oriented storage with validation (was: Re: Cachingcompiled regexps across sessions (was Re: Regular Expressions- Python vs Perl))

2005-04-24 Thread Fredrik Lundh
> > At least the interface looks quite simple and usable. With some > > validation wrapping over it, it might be ok... > > I was going to point you to a validating parser for ET, but the "it might > be ok" statement is a bit too arrogant for my taste. I'll point you all to *two* validating parser

Re: Object oriented storage with validation (was: Re: Caching compiled regexps across sessions (was Re: Regular Expressions - Python vs Perl))

2005-04-24 Thread Fredrik Lundh
Ilpo Nyyssönen wrote: > What is the point in doing validation if it isn't done every time? Why > wouldn't I do it every time? It isn't that slow thing to do. DTD validation is useful in two cases: making sure that data from a foreign source has the right structure, and making sure that data you c