On Thu, 10 Feb 2005 23:50:09 +1000, Nick Coghlan
<[EMAIL PROTECTED]> wrote:

>>     def __init__(self, l=[]):
>
>Change this too:
>   def __init__(self, l=None):
>     if l is None: l = []

Same error.  The only ways of not getting the TypeError I've found are
not to call deepcopy or not assign an instancemethod to an instance
attribute (assigning an instancemethod to a class attribute is fine).
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to