> When I optimized a useless ~ out of the dict code for 2.2, it became much > more likely that the traversal order for an int-keyed dict would match > numeric order. I have evidence that this has fooled newbies into believing > that dicts are ordered maps! If it wouldn't cost an extra cycle, I'd be > tempted to slop the ~ back in again <0.9 wink>. Maybe add a ~ to the int hash code? That means it's not on the critical path for dicts with string keys. --Guido van Rossum (home page: http://www.python.org/~guido/)
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