[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Deep copy
From: Frederick Polgardy Jr <polgardy () bodacion ! com>
Date: 2003-07-22 18:34:43
[Download RAW message or body]
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.
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic