[Python-Dev] Very Strange Argument Handling Behavior

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 17 02:43:13 CEST 2010


Daniel Stutzbach wrote:

> Unless you're saying you often create a dictionary, add non-string keys, 
> remove the non-string keys, then pass it as a **kwds? ;-)

I think the point is that it would create a very mysterious
potential failure mode. What would you make of a situation
where Python says "TypeError: Keyword dict contains non-string
keys", but upon examination, the dict clearly does not contain
any such thing?

-- 
Greg


More information about the Python-Dev mailing list