"Gerard Flanagan" <[EMAIL PROTECTED]> writes:
[...]
> class FibonacciMatrix:
[...]
>     def Copy( self ):
[...]

__copy__ would be a more standard name.  Then:

import copy
fm = FibonacciMatrix()
fm2 = copy.copy(fm)


I suppose you could also add:

__deepcopy__ = __copy__


in the body of the class definition.


John

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to