[issue27160] Silent truncation of kwargs when passing keywords containing colons

2016-05-30 Thread STINNER Victor
STINNER Victor added the comment: IMHO the error is very explicit: Traceback (most recent call last): File "poc.py", line 6, in 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.or

[issue27160] Silent truncation of kwargs when passing keywords containing colons

2016-05-30 Thread Kenneth Lim
New submission from Kenneth Lim: Passing a dict with colon-containing keys as kwargs to a function results in a KeyError stemming from a silent truncation of the keys. Error does not clearly describe the issue in this case. -- components: Interpreter Core files: poc.py messages: 266696