FWIW There's an existing issue (bpo 29652 <https://bugs.python.org/issue29652>) for the order of evaluation in dict-comps. Best Regards, Jim Fasarakis Hilliard On Thu, Apr 26, 2018 at 7:06 PM, Chris Angelico <rosuav at gmail.com> wrote: > On Fri, Apr 27, 2018 at 2:02 AM, Guido van Rossum <gvanrossum at gmail.com> > wrote: > > Maybe the order for d[k] = v should also be reconsidered? > > If so, it would be something like: > > 1) Evaluate d > 2) Evaluate k > 3) Evaluate v > 4) Call d.__setitem__(k, v), via slots etc > > In a vacuum, I don't have a problem with that. But I suspect that it'd > break more code than the comprehensions changes do. > > ChrisA > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: https://mail.python.org/mailman/options/python-dev/d. > f.hilliard%40gmail.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180426/aba77aea/attachment.html>
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