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