New submission from Terry Cooper:

The Python statement gList1[i1][1] += gList2[i2][1] modifies not only gList1 (a 
volatile storage object) but dBasis[163] (a record within shelve object 
dBasis).  Both gList and dBasis[163] are printed before and after execution of 
the statement by cFract2.combine.  They are obviously not the same record, but 
the statement modifies gList1[2][1] and dBasis[163][2][1] simultaniously.

----------
components: Windows
files: bugMail.py
messages: 175871
nosy: ttcooper
priority: normal
severity: normal
status: open
title: Unwanted link between volatile and shelve storage
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file28023/bugMail.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16498>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to