Terry Cooper added the comment:
Got your message before I got his. Thanks for the reference to python-list.
>From: "R. David Murray" <rep...@bugs.python.org>
>Sent: Nov 18, 2012 9:39 PM
>Subject: [issue16498] Unwanted link between volatile and shelve storage
>R. David Murray added the comment:
>If it "got it" from dBasis via item assignment (say gList1[i1] =
>dBasis), then yes, Python remembers that. Names just hold pointers to
>objects, so after that assignment gList1[i1] points to the same object as
>dBasis does. If that object is mutable, and you mutate it (as += will
>do, if the object is mutable), both names will still reference the same
>object, the one that has been changed.
>As Serhiy suggested, you are more likely to get help with this on python-list.
>Python tracker <rep...@bugs.python.org>
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list