By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,486 Members | 1,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,486 IT Pros & Developers. It's quick & easy.

Booleans and comparison results

P: n/a

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?
cmp(1,2) Less cmp(1,-1) More cmp(1,1)

if cmp(foo, bar) is Less:

hmmm... Sadly, I know GvR is not going to add new keyword:

if cmp(foo, bar) are Equal:


Sincerely yours, Roman Suzi
rn* =\= My AI powered by GNU/Linux RedHat 7.3
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.