[Python-Dev] Very Strange Argument Handling Behavior (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 17 02:43:13 CEST 2010
- Previous message: [Python-Dev] Very Strange Argument Handling Behavior
- Next message: [Python-Dev] Very Strange Argument Handling Behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Very Strange Argument Handling Behavior
- Next message: [Python-Dev] Very Strange Argument Handling Behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]