NEWBIE: opaque error message
Darrell
news at dorb.com
Tue Jun 15 00:17:00 EDT 1999
A hint.
>>> import copy
>>> class X:
... def __deepcopy__(self):
... pass
...
>>> x=X()
>>> copy.deepcopy(x)
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "d:\python\Lib\copy.py", line 151, in deepcopy
y = copierfunction(x, memo)
File "d:\python\Lib\copy.py", line 221, in _deepcopy_inst
return x.__deepcopy__(memo)
TypeError: too many arguments; expected 1, got 2
>>>
--
--Darrell
More information about the Python-list
mailing list