STINNER Victor added the comment: IMHO the error is very explicit:
Traceback (most recent call last): File "poc.py", line 6, in <module> print(a.format(**r)) KeyError: 'HGNC' Your "r" directory has no "HGNC" key. I think that you misunderstood the formatting of str.format: https://docs.python.org/dev/library/string.html#formatstrings The format string "{HGNC:11892}" is parsed as key="HGNC", format="11892". ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27160> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com