How to make a copy?

Janos Blazi jblazi at hotmail.com
Sun Oct 14 09:22:17 EDT 2001


I have a class X:

class X:
   def __init__(self,...)
   ...

It is a relatively deeply nested class, containg other classes that contain
lists, dictionaries, etc.

I should like to copy of an instance instead of copy the reference only:

a=X(...)

b="copy of a".

Then I can change b in a dialogbox and decide later if I copy the changes
back to a.
How should I do it?

J.B.





-----=  Posted via Newsfeeds.Com, Uncensored Usenet News  =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
 Check out our new Unlimited Server. No Download or Time Limits!
-----==  Over 80,000 Newsgroups - 19 Different Servers!  ==-----



More information about the Python-list mailing list