[issue29552] Issue in Dictionary fromkeys

Prudvi Mangadu report at bugs.python.org
Tue Feb 14 04:31:42 EST 2017


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,[])  >>>> Issue with this line
==========================

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29552>
_______________________________________


More information about the Python-bugs-list mailing list