Thread: Python brevity
View Single Post
Old May 23rd, 2006, 8:51 AM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Perhaps I oversimplify things. Rather than create examples, I reasoned thusly: Suppose I have two things that, compared as objects, yield one result. When compared by some attribute, they yield the opposite result. One of the two comparisons is "wrong." Which one is wrong depends on the requirements of the writer. The important thing, to me, is to be aware that there's a difference. I WAS NOT AWARE until the comment was made. I thank you for that and for your additional explanation. I will, I must admit, not ascribe evil or safety to one over the other, except as individual circumstance dictates.

I appreciate the help from both of you.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote