On Tue, Jul 7, 2009 at 8:01 PM, pdpi<pdpinhe...@gmail.com> wrote:

> He asserts:
>    assert lo < hi
> but then compares:
>    sense = cmp(func(hi), func(lo))
>
> sense can't ever be anything other than 1.

It can - there is no necessity that func is monotonically increasing.

-- 
André Engels, andreeng...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to