On Dec 10, 1:56 pm, Wolfgang Rohdewald <wolfg...@rohdewald.de> wrote: > On Freitag 10 Dezember 2010, Dirk Nachbar wrote: > > > I want to take a copy of a list a > > > b=a > > > and then do things with b which don't affect a. > > > How can I do this? > > > Dirk > > b=a[:] > > -- > Wolfgang
I did that but then some things I do with b happen to a as well. -- http://mail.python.org/mailman/listinfo/python-list