Alexander Haarer
2007-05-16 13:38:36 UTC
Hi,
i am trying to make a deep copy of a CORBA structure received via a
CORBA interface
in order to compare new to old data and compare the changes.
Unfortunately it throws this exception :
Traceback (most recent call last):
File "/home/haarer/test/test.py", line 223, in receive_data
SavedData = copy.deepcopy(Data)
File "/usr/lib/python2.4/copy.py", line 174, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.4/copy.py", line 305, in _deepcopy_inst
state = deepcopy(state, memo)
File "/usr/lib/python2.4/copy.py", line 174, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.4/copy.py", line 268, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.4/copy.py", line 204, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.4/copy.py", line 336, in _reconstruct
y = callable(*args)
File "/usr/lib/python2.4/copy_reg.py", line 92, in __newobj__
return cls.__new__(cls, *args)
TypeError: instancemethod expected at least 2 arguments, got 0
Is there an other way do a deep copy of the data than using copy.deepcopy(),
or a maybe a workaround ?
I am using omniORB-4.0.7 with pyhon 2.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alexander.haarer.vcf
Type: text/x-vcard
Size: 189 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070516/e708fe7c/alexander.haarer.vcf
i am trying to make a deep copy of a CORBA structure received via a
CORBA interface
in order to compare new to old data and compare the changes.
Unfortunately it throws this exception :
Traceback (most recent call last):
File "/home/haarer/test/test.py", line 223, in receive_data
SavedData = copy.deepcopy(Data)
File "/usr/lib/python2.4/copy.py", line 174, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.4/copy.py", line 305, in _deepcopy_inst
state = deepcopy(state, memo)
File "/usr/lib/python2.4/copy.py", line 174, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.4/copy.py", line 268, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.4/copy.py", line 204, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.4/copy.py", line 336, in _reconstruct
y = callable(*args)
File "/usr/lib/python2.4/copy_reg.py", line 92, in __newobj__
return cls.__new__(cls, *args)
TypeError: instancemethod expected at least 2 arguments, got 0
Is there an other way do a deep copy of the data than using copy.deepcopy(),
or a maybe a workaround ?
I am using omniORB-4.0.7 with pyhon 2.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alexander.haarer.vcf
Type: text/x-vcard
Size: 189 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070516/e708fe7c/alexander.haarer.vcf