I ahve the following Python class defined...
class Linear ( FunctionBase ) :
def __init__ ( self, other = None ) :
if other :
FunctionBase.__init__( self, other )
print "copy"
self.initialize ()
else:
FunctionBase.__init__( self )
print "default"
self.initialize ()
def clone ( self ) :
print "clone"
return Linear ( self )
with some member functions not shown. The class FunctionBase is a C++
abstract base class interfaced via FunctionBase.sip It appears that
after clone() calls the copy constructor (speaking in C++ terms), the
C++ object is deleted. How do I prevent that? Or am I trying to
clone the function in an in correct way (I know C++ better than
Python)?
_______________________________________________
PyKDE mailing list [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde