[PyKDE] Deep copy

Frederick Polgardy Jr polgardy at bodacion.com
Tue Jul 22 20:36:01 BST 2003


On Tuesday 22 July 2003 10:28 am, Vio wrote:
> def cloneObj(obj):
>     cloneObj = obj.__class__()

It's worse than that.  This presumes you can default construct your 
object, which in many (most?) cases you probably can't.




More information about the PyQt mailing list