question of style

Paul Rubin http
Thu Jul 2 17:43:38 EDT 2009


Tim Harig <usernet at ilthio.net> writes:
> If lower is 5 and higher is 3, then it returns 3 because 3 != None in the
> first if.

Sorry, the presumption was that lower <= higher, i.e. the comparison
had already been made and the invariant was enforced by the class
constructor.  The comment should have been more explicit, I guess.



More information about the Python-list mailing list