Booleans and comparison results

Gerhard Häring gh at ghaering.de
Tue Jun 24 11:49:51 EDT 2003


Roman Suzi wrote:
> Just a thought. Why cmp() returns -1,0,1 while comparison
> results are False and True? Isn't it logical step to add
> Less, Equal and More? [...]

Yeah. And while we're at it, we might add a module for time constants. ;-)

-- Gerhard





More information about the Python-list mailing list