Re: Error:can't assign to operator

Discussion in 'Python' started by Emile van Sebille, Aug 1, 2008.

  1. Prasad, Mrunalini wrote:
    > dest + j - 1 = source + i


    Well, what are you trying to do here?

    >>> a,b,c = range(3)
    >>>a+b-1=c+1

    SyntaxError:can't assign to operator

    Emile
     
    Emile van Sebille, Aug 1, 2008
    #1
    1. Advertising

  2. Emile van Sebille

    MRAB Guest

    On Aug 1, 9:50 pm, Emile van Sebille <> wrote:
    > Prasad, Mrunalini wrote:
    > >         dest + j - 1 = source + i

    >
    > Well, what are you trying to do here?
    >
    >  >>> a,b,c = range(3)
    >  >>>a+b-1=c+1
    > SyntaxError:can't assign to operator
    >
    > Emile


    Just a comment, but I thought the preferred term was 'binding'... :)
     
    MRAB, Aug 2, 2008
    #2
    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. Rim
    Replies:
    20
    Views:
    723
    Corey Coughlin
    Jul 8, 2003
  2. Replies:
    2
    Views:
    957
    Fredrik Lundh
    Jun 7, 2006
  3. Chris Roth

    Vector Assign vs Vector operator=

    Chris Roth, Feb 21, 2007, in forum: C++
    Replies:
    4
    Views:
    393
    Ron Natalie
    Feb 22, 2007
  4. Replies:
    2
    Views:
    2,320
    John Harrison
    May 26, 2007
  5. Dennis Lee Bieber

    Re: Error:can't assign to operator

    Dennis Lee Bieber, Aug 2, 2008, in forum: Python
    Replies:
    1
    Views:
    500
    Emile van Sebille
    Aug 3, 2008
Loading...

Share This Page