James Stroud wrote:
... def find(field, order_by='desc'): if order_by not in ['asc', 'desc']: raise ValueError, 'Bad order_by parameter.' ...
I'd try a little harder with that error message. At least: raise ValueError('Bad order_by parameter %r.' % (order_by,)) if not:raise ValueError('Bad order_by = %r (should be in %r).' % (
order_by, ['asc', 'desc']))
--Scott David Daniels scott.dani...@acm.org -- http://mail.python.org/mailman/listinfo/python-list