Hi all, I am trying to define a class with copy constructor as following: class test: def __init__(self, s=None): self=s x=[1,2] y=test(x) print y.__dict__ it gives {} The above code doesn't work. Questions are: 1. Can 'self ' be a class attribute? 2. How to make a copy constructor? Thanks for any help. Eric
-- http://mail.python.org/mailman/listinfo/python-list