[Twisted-Python] domish.Element and deepcopy problem

Arthur Lutz arthur.lutz at logilab.fr
Fri Sep 17 10:29:21 EDT 2004


I'm having a problem with domish.Element, here it is (isolated) : 

from twisted.xish import domish
from copy import deepcopy

invitation = domish.Element(('jabber:client', 'message'))
invitation2 = deepcopy(invitation)

gives me : 

Traceback (most recent call last):
  File "modules/isolated_bug.py", line 5, in ?
    invitation2 = deepcopy(invitation)
  File "/usr/lib/python2.3/copy.py", line 198, in deepcopy
    rv = reductor(2)
TypeError: 'NoneType' object is not callable

Python version : 
Python 2.3.4 (#2, Jul  5 2004, 09:15:05) 
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Hope this is enough for a diagnostic. 

Thanks a lot for the good work, 

Arthur LUTZ
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr http://www.logilab.org
Advanced Computing -  Knowledge Management -  Artificial Intelligence
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040917/40970d67/attachment.pgp 

More information about the Twisted-Python mailing list