On Dec 13, 2005, at 1:00 PM, Simon Belak wrote:


Brian Beck wrote:
David Stanek wrote:
On 12/10/05, Kevi
But I am not sure how good of an idea this would be. I'll bring it up on the
Kid mailing list after I think about it for a bit.
I brought it up on there a few days ago, and I think the developers
value the "always-valid-XML" feature quite highly. Personally I think
that's just a checklist feature and doesn't actually help developers.
The "able to write actual Python in your templates" is a much more
valuable feature to me, so I'd like to see it changed...
You can always use operator.lt()

A bit messy perhaps but automatic validation (even relatively minor such as XML validity) is not to looked down at either.

Maybe lt, gt, le, ge should be available directly?

I guess there's always cmp..

lt: cmp(a, b) == -1
gt: cmp(a, b) == 1
le: cmp(a, b) != 1
ge: cmp(a, b) != -1

-bob

Reply via email to