bruno at modulix wrote: > Thomas Guettler wrote: > >>Hi, >> >>I like python because it is compatible to old versions. That's way I think >>string exceptions should not be deprecated. >> >>I use string exceptions if the condition for an assertion is >>to complex: >> >>if foo and bar and i>10: >> raise "if foo and bar i must not be greater than 10" > > > What's wrong with: > > assert foo and bar and i > 10, \ > "if foo and bar i must not be greater than 10" >
oops ! I meant: if foo and bar: assert i > 10, "if foo and bar i must not be greater than 10" My bad :( -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list