[Python-Dev] Re: how to test behavior wrt an extension type?

2005-01-17 Thread Anthony Baxter
On Sunday 16 January 2005 20:38, Alex Martelli wrote: Problem: to write unit tests showing that the current copy.py misbehaves with a classic extension type, I need a classic extension type which defines __copy__ and __deepcopy__ just like /F's cElementTree does. So, I made one: a small

[Python-Dev] Re: how to test behavior wrt an extension type?

2005-01-16 Thread Fredrik Lundh
Alex Martelli wrote: Problem: to write unit tests showing that the current copy.py misbehaves with a classic extension type, I need a classic extension type which defines __copy__ and __deepcopy__ just like /F's cElementTree does. So, I made one: a small trycopy.c and accompanying

Re: [Python-Dev] Re: how to test behavior wrt an extension type?

2005-01-16 Thread Alex Martelli
On 2005 Jan 16, at 12:03, Fredrik Lundh wrote: Alex Martelli wrote: Problem: to write unit tests showing that the current copy.py misbehaves with a classic extension type, I need a classic extension type which defines __copy__ and __deepcopy__ just like /F's cElementTree does. So, I made one: a