Prudvi Mangadu added the comment:
Thanks Martin , I will close it.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Prudvi Mangadu added the comment:
Also observed that ID of the values are pointing same, its ok.
But if some one later modified that values which causes the un-usual output.
>>> id(result['1'])
38121184
>>> id(result['2'])
38121184
--
Prudvi Mangadu added the comment:
Workaround is replace the below 2 lines with "result ={D_IP:[] for D_IP in
input}"
==
result = {}
result = result.fromkeys(input,[]) >>>>
New submission from Prudvi Mangadu:
If we load the keys and values using fromkeys on dic.
Later the modification in the values is reflects for all keys in the DIC,
please follow the below code.
###
PS C