[Guido] > Maybe the order for d[k] = v should also be reconsidered? There's certainly code in the wild relying on the order "v, then d, then k", because that's just how assignment statements have always worked (dicts or not). I'd rather change the dict comprehension code, because I think the analogy to what `d[k] = v` does is weak. I expect: {f(): g() for _ in [1]| to do the same as {f(): g()} The former currently evaluates g() first; the latter f(). Since I also expect both of those to do the same as dict((f(), g()) for _ in [1]) f() has to win ;-)
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