Dirk Nachbar <dirk...@gmail.com> writes: > I want to take a copy of a list a > > b=a
In addition to the other good replies you've received: To take a copy of an object, the answer is never ‘b = a’. That binds a reference ‘b’ to the same object referenced by ‘a’. The assignment operator ‘=’ never copies; it binds a reference to an existing object. To create a copy, you always need to do something other than assignment. Hope that keeps it clear for you. -- \ “Computer perspective on Moore's Law: Human effort becomes | `\ twice as expensive roughly every two years.” —anonymous | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list