On 17/04/2010 02:43, Greg Ewing wrote: > 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? > No, if the dictionary is not marked as an all-string dict it can fallback to checking. The common case (dict marked as all strings) is fast. Michael -- http://www.ironpythoninaction.com/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4