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

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

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. Borrowi