On Thu, 13 Apr 2000, Fredrik Lundh wrote: > now that we have the sq_contains slot, would it make > sense to add support for "key in dict" ? > > after all, > > if key in dict: > ... The counter has always been, "but couldn't that be read as 'if value in dict' ??" Or maybe 'if (key, value) in dict' ?? People have different impressions of what "in" should mean for a dict. And some people change their impression from one function to the next :-) Cheers, -g -- Greg Stein, http://www.lyra.org/
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