Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread dewitters
On Mar 29, 9:48 pm, Dan Bishop <[EMAIL PROTECTED]> wrote:
> MOST of Python's operators are based on C's.  Consider, for example,
> the bitwise operators | ^ & << >> ~ and the compound assignment
> operators += -= etc.
>
> The exceptions are ** (from Fortran), //, and the logical operators.

Borrowing parts out of other languages (C in this case) is not a
problem, but I don't think there is a need to try be consistent with
C. It's Python, not C, so we should do things better ;).
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread dewitters
On Mar 29, 6:34 pm, Lie <[EMAIL PROTECTED]> wrote:
> You're forcing your argument too much, both != and <> are NOT standard
> mathematics operators -- the standard not-equal operator is >< -- and
> I can assure you that both != and <> won't be comprehensible to non-
> programmers.

What I meant was that both < and > are standard mathematics operators,
and that by that knowledge one could deduce what <> means. But ><
would also be fine by me :).
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread dewitters
On Mar 29, 12:41 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> Given that <= is a comparison operator, not an assignment, why do you
> jump to the conclusion that != is an assignment? Why don't you argue that
> "x <= y" means "assign the value of x Since you jump to an invalid conclusion about !=, the rest of your
> argument fails.

No, you said <= could be confusing, but we're talking about <> here,
and there is no confusion about that :).
-- 
http://mail.python.org/mailman/listinfo/python-list