This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Kenneth Lim, vstinner
Date 2016-05-30.14:56:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464620202.19.0.888227053222.issue27160@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2016-05-30 14:56:42vstinnersetrecipients: + vstinner, Kenneth Lim
2016-05-30 14:56:42vstinnersetmessageid: <1464620202.19.0.888227053222.issue27160@psf.upfronthosting.co.za>
2016-05-30 14:56:42vstinnerlinkissue27160 messages
2016-05-30 14:56:42vstinnercreate