RE: <> and !=

Discussion in 'Python' started by Tim Peters, Jul 16, 2003.

  1. Tim Peters

    Tim Peters Guest

    [Don Arnold]
    > Out of curiosity, what was the original operator for the equality
    > comparison?


    '=' was used for both equality comparison and assignment. The ambiguity of
    this-- especially at an interactive prompt --soon killed that idea:

    >>> a = b


    If you look in a current Python source distribution, the script
    Demo/scripts/eqfix.py is still left over from the transition!
     
    Tim Peters, Jul 16, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nut Cracker
    Replies:
    1
    Views:
    349
  2. jakk
    Replies:
    4
    Views:
    12,396
  3. Tim Meagher
    Replies:
    8
    Views:
    1,301
    Karl Seguin
    Jun 18, 2005
  4. Jerry Manner
    Replies:
    2
    Views:
    6,589
    SpaceGirl
    May 30, 2005
  5. titi

    if and and vs if and,and

    titi, Mar 9, 2007, in forum: VHDL
    Replies:
    4
    Views:
    602
    Mike Treseler
    Mar 11, 2007
Loading...

Share This Page