<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>I’m working with a Dictionary of Dicts. Something like this:</div>
<div> </div>
<div>myDict = {</div>
<div>                                                'TestName': {</div>
<div>                                                                'FileName':{</div>
<div>                                                                                'ct_init':1234,</div>
<div>                                                                                'psl_init':5678,</div>
<div>                                                                                'total_test_time':7890,</div>
<div>                                                                                'psl_shutdown':8765,</div>
<div>                                                                                'ct_shutdown':<font color="#FF0000">9021</font>,</div>
<div>                                                                                'total_time':3421,</div>
<div>                                                                },</div>
<div>                                                }</div>
<div>}</div>
<div> </div>
<div>Accessing values is pretty straightforward (nice change from my Perl days). For example:</div>
<div> </div>
<div>myDict['TestName']['FileName']['ct_shutdown'] </div>
<div> </div>
<div>in Python interpreter yields</div>
<div> </div>
<div><font color="#FF0000">9021</font></div>
<div> </div>
<div>However, when I try to add, let’s say, a new FileName entry, I end up replacing the previous FileName entry.</div>
<div> </div>
<div>In Python interpreter, I try:</div>
<div> </div>
<div>myDict['TestName'] = {'NewFileName': {}, }</div>
<div> </div>
<div>I get</div>
<div> </div>
<div>{'TestName': {'NewFileName': {}}}</div>
<div> </div>
<div>So, how do I add a new entry without replacing the old entry?</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>John Townsend (5-7204), </div>
<div>AGM-FL and PSL QE Lead</div>
<div> </div>
<div> </div>
<div> </div>
</font>
</body>
</html>