Re: [Python-Dev] Re: copy confusion

2005-01-12 Thread Alex Martelli
On 2005 Jan 12, at 00:30, Fredrik Lundh wrote: Guido van Rossum wrote: The only thing this intends to break /.../ it breaks classic C types: True!!! And it only breaks copy, NOT deepcopy, because of the following difference between the two functions in copy.py...: def deepcopy(x, memo=None, _nil

[Python-Dev] Re: copy confusion

2005-01-11 Thread Fredrik Lundh
Guido van Rossum wrote: > The only thing this intends to break /.../ it breaks classic C types: >>> import cElementTree >>> x = cElementTree.Element("tag") >>> x >>> x.__copy__ >>> x.__copy__() >>> import copy >>> y = copy.copy(x) Traceback (most recent call last): File "", line 1, in ? F