Re: [Tutor] Challenge supporting custom deepcopy with inheritance

2009-06-01 Thread Gabriel Genellina
En Mon, 01 Jun 2009 00:28:12 -0300, Michael H. Goldwasser escribió: Hi Kent, Thanks for your thoughts. For the original example code, you are correct that we could make it work by having B provide the one-arg constructor to match A's constructor signature. But I don't see this as a general s

Re: [Tutor] Challenge supporting custom deepcopy with inheritance

2009-05-31 Thread Michael H . Goldwasser
Hi Kent, Thanks for your thoughts. For the original example code, you are correct that we could make it work by having B provide the one-arg constructor to match A's constructor signature. But I don't see this as a general solution. Having B.__deepcopy__() make a call to A.__deepcopy__() assu