Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Error:can't assign to operator

Reply
Thread Tools

Re: Error:can't assign to operator

 
 
Emile van Sebille
Guest
Posts: n/a
 
      08-01-2008
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


 
Reply With Quote
 
 
 
 
MRAB
Guest
Posts: n/a
 
      08-01-2008
On Aug 1, 9:50*pm, Emile van Sebille <(E-Mail Removed)> 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'...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Error:can't assign to operator Dennis Lee Bieber Python 1 08-03-2008 04:32 PM
Does std::string do a shallow copy in copy construtor and assign operator ? suman.nandan@gmail.com C++ 2 05-26-2007 07:47 AM
Vector Assign vs Vector operator= Chris Roth C++ 4 02-22-2007 12:57 PM
assign operator as variable ? s99999999s2003@yahoo.com Python 2 06-07-2006 06:33 AM
Suggesting for overloading the assign operator Rim Python 20 07-08-2003 06:50 PM



Advertisments