Re: Using equals operator without changing reference pointer

2009-01-30 Thread mark . seagoe
On Jan 29, 8:03 pm, Terry Reedy wrote: > Erik Max Francis wrote: > > mark.sea...@gmail.com wrote: > > >> Is there a way to lock down myInst so that it still refers to the > >> original object, and is there some special member that will allow me > >> to override the equals operator in this case?  O

Re: Using equals operator without changing reference pointer

2009-01-29 Thread Terry Reedy
Erik Max Francis wrote: mark.sea...@gmail.com wrote: Is there a way to lock down myInst so that it still refers to the original object, and is there some special member that will allow me to override the equals operator in this case? Or is that simply blasphemous against everything Python hold

Re: Using equals operator without changing reference pointer

2009-01-29 Thread Erik Max Francis
mark.sea...@gmail.com wrote: Is there a way to lock down myInst so that it still refers to the original object, and is there some special member that will allow me to override the equals operator in this case? Or is that simply blasphemous against everything Python holds sacred? Certainly ther

Using equals operator without changing reference pointer

2009-01-29 Thread mark . seagoe
I know this may be asking too much of Python, but you never know unless you ask... So now having a class that can be treated like an int as far as math upon the instance name, and can be treated as in HDL simulators, allowing bitslice and bitselect ops, I was stoked. Also reading back the instanc