This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author glchapman
Recipients
Date 2002-05-26.19:15:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This is essentially the same problem as that reported in 
bug 494904 for pickle: deepcopy should treat instances 
of custom metaclasses the same way it treats 
instances of type 'type'.  I've attached a provisional fix 
which is basically a copy of the patch made to pickle (it 
checks to see if the type of the thing being deepcopied 
is a subclass of type).

One question: it seems to me that the exception 
handling code is unnecessary both here and in the 
pickle module.  In both cases, the first parameter to 
subclass is the result of a call to 'type' and the second 
is type 'type' itself, so it doesn't seem like there's any 
reason to worry about a TypeError.
History
Date User Action Args
2007-08-23 14:01:40adminlinkissue560794 messages
2007-08-23 14:01:40admincreate