How do I make a copy of my class object?

Marlin Rowley marlin_rowley at hotmail.com
Fri May 23 00:31:35 EDT 2008


Nevermind.
 
I ended up making a copy of everything within the class since I'm storing bitmaps anyway.  It works.
 
I'll read up more on the deepcopy() function.



> To: python-list at python.org> From: russblau at hotmail.com> Subject: Re: How do I make a copy of my class object?> Date: Thu, 22 May 2008 17:52:02 -0400> > "Marlin Rowley" <marlin_rowley at hotmail.com> wrote in message > news:BAY135-W134E8CAB38A2ACB2F5933F9FC60 at phx.gbl...> > I have a class object which has the usual data members and functions.> > I'm trying to make a copy of this class (which includes wx.Bitmap objects)> > but deepcopy() doesn't seem to work. How would I do this?> > Are you trying to make a copy of the "class object" or of a class instance?> > What error message are you getting when you call deepcopy() on this object?> > > > > --> http://mail.python.org/mailman/listinfo/python-list
_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080522/236aa06e/attachment-0001.html>


More information about the Python-list mailing list