<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;color:rgb(102,0,0)"><font><span style="font-family:verdana,sans-serif">Hi,</span></font><br><br><font><span style="font-family:verdana,sans-serif">where am i going wrong ?</span></font><br><span style="font-family:verdana,sans-serif"><font><br>$ python3<br>Python 3.2.5 (default, Oct 2 2013, 22:58:11)<br>[GCC 4.8.1] on cygwin<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> d = {}<br>>>> import sys<br>>>> d = sys.modules<br>>>> type(d)<br><class 'dict'><br>>>> dir(d)<br>['__class__', '__contains__', '__delattr__', '__delitem__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']<br>>>> d.clear()<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>>>> d<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>>>> quit()<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module></font></span><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;color:rgb(102,0,0)"><font><font face="verdana,sans-serif">Thanks in advance.</font></font><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;color:rgb(102,0,0)">Best regards,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;color:rgb(102,0,0)">Shawool<br clear="all"></div>
</div>