Re: Python less error-prone than Java

2006-06-04 Thread Ilpo Nyyssönen
nce between null pointer and wrong type. Of course if the error message tells you that you had null there, it is not a problem, but what if you somehow lose the error message and get only the exception class name? (Yes, you should always keep the message too, but it does happen.) -- Ilpo Nyyssönen # biny # /* :-) */ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python less error-prone than Java

2006-06-03 Thread Ilpo Nyyssönen
that level Java might be less error-prone as it does restrict the ways you can shoot yourself more. -- Ilpo Nyyssönen # biny # /* :-) */ -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL question: keeping metadata

2005-07-02 Thread Ilpo Nyyssönen
on might be outdated). There is this: http://mail.python.org/pipermail/image-sig/2004-September/002931.html -- Ilpo Nyyssönen # biny # /* :-) */ -- http://mail.python.org/mailman/listinfo/python-list

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>

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 tw

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

2005-04-24 Thread Ilpo Nyyssönen
e regexps themselves aren't there > either. How can it work automatically in separate module? Replacing the re.compile with something sounds possible way of getting the regexps, but how and where to store the compiled data? Is there a way to put it to the byte code file? Maybe I need to take a look at it when I find the time... -- Ilpo Nyyssönen # biny # /* :-) */ -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions - Python vs Perl

2005-04-22 Thread Ilpo Nyyssönen
ing better than DOM, must be object oriented.) I don't want to make my programs ugly (read: use some more low level interface) and error prone (read: no validation) to make them fast. -- Ilpo Nyyssönen # biny # /* :-) */ -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions - Python vs Perl

2005-04-22 Thread Ilpo Nyyssönen
Ville Vainio <[EMAIL PROTECTED]> writes: >>>>>> "Ilpo" == Ilpo Nyyssönen writes: > > Ilpo> The problem in python here is that it needs to always > Ilpo> recompile the regexp. I would like to have a way to write a > Ilpo> r

Re: Regular Expressions - Python vs Perl

2005-04-21 Thread Ilpo Nyyssönen
nd line apps. Of course we do have ways to go around that limitation, but that is just ugly. -- Ilpo Nyyssönen # biny # /* :-) */ -- http://mail.python.org/mailman/listinfo/python-list