Re: bug in copy.deepcopy or in getattr or in my understanding?

2007-01-05 Thread Emin
Dear Gabriel, Thank you for your reply. As you guessed, I want to be able to select the method at runtime as in your final example, but when I tried your suggestion I got the same error (see below). I think the problem is that getattr is donig something different than in my example where I

Re: bug in copy.deepcopy or in getattr or in my understanding?

2007-01-05 Thread Peter Otten
Emin wrote: Thank you for your reply. As you guessed, I want to be able to select the method at runtime as in your final example, but when I tried your suggestion I got the same error (see below). I think the problem is that getattr is donig something different than in my example where I

Re: bug in copy.deepcopy or in getattr or in my understanding?

2007-01-05 Thread Gabriel Genellina
At Friday 5/1/2007 11:01, Emin wrote: Thank you for your reply. As you guessed, I want to be able to select the method at runtime as in your final example, but when I tried your suggestion I got the same error (see below). I think the problem is that getattr is donig something different than in

bug in copy.deepcopy or in getattr or in my understanding?

2007-01-04 Thread Emin
Dear experts, I got some unexpected behavior in getattr and copy.deepcopy (see transcript below). I'm not sure if this is actually a bug in copy.deepcopy or if I'm doing something too magical with getattr. Comments would be appreciated. Thanks, -Emin # Transcript follows

Re: bug in copy.deepcopy or in getattr or in my understanding?

2007-01-04 Thread Gabriel Genellina
At Thursday 4/1/2007 17:26, Emin wrote: I got some unexpected behavior in getattr and copy.deepcopy (see transcript below). I'm not sure if this is actually a bug in copy.deepcopy or if I'm doing something too magical with getattr. Comments would be appreciated. Both examples are different.