Re: deepcopy does not work for A subclassed list

2011-10-07 Thread Terry Reedy
On 10/7/2011 4:37 PM, MRAB wrote: On 07/10/2011 20:29, txismis unzetabarrenetxeagoikolea wrote: Any ideas about how to make the copy module to behave as expected. The documentation talks about defining a "__deepcopy__" method. Specifically, in the copy module doc "In order for a class to d

Re: deepcopy does not work for A subclassed list

2011-10-07 Thread MRAB
On 07/10/2011 20:29, txismis unzetabarrenetxeagoikolea wrote: This is the issue I have created a mylist class by subclassing a List, added several attributes to mylIst , and overrided the append method which takes into account one of the new attributes. mylist class is functional and works as I

deepcopy does not work for A subclassed list

2011-10-07 Thread txismis unzetabarrenetxeagoikolea
This is the issue I have created a mylist class by subclassing a List, added several attributes to mylist , and overrided the append method which takes into account one of the new attributes. mylist class is functional and works as I planned, but when I try to deepcopy objects from mylist I