Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: __setitem__ without position

Reply
Thread Tools

Re: __setitem__ without position

 
 
Ian Kelly
Guest
Posts: n/a
 
      10-11-2012
On Thu, Oct 11, 2012 at 4:13 PM, Kevin Anthony
<> wrote:
> I'm not supprised... and understand why it's happening. I'm asking how to
> get around it.
>
> Basically i'm asking how to override, if i can, the `=`


You cannot override assignment of local variables. To get around it,
use slicing as Dave suggested, or use an attribute instead of a local
variable.
 
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: __setitem__ without position Peter Otten Python 0 10-12-2012 04:42 PM
Re: __setitem__ without position Ethan Furman Python 0 10-12-2012 04:16 PM
Re: __setitem__ without position Terry Reedy Python 0 10-11-2012 11:47 PM
Re: __setitem__ without position Ethan Furman Python 0 10-11-2012 11:23 PM
Re: __setitem__ without position Dave Angel Python 0 10-11-2012 09:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57