You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[py-compiler] relax async comprehension nesting when inlined
Summary:
In cinder 3.8 we unintentionally allowed async comprehensions to nest
inside non-async ones, due to comprehension inlining. When we ported
comprehension inlining to 3.10, we closed this hole for better fidelity to
upstream compiler behavior, but that means we have to fix the
places in IGSRV that now break this rule. And this doesn't seem worth it
considering the restriction is lifted in Python 3.11 anyway:
python/cpython#6766
This diff just restores the 3.8 behavior of comprehension inlining allowing
async comprehensions nested inside non-async ones.
Facebook: this should unblock 3.10 testing on IGSRV.
Test Plan: Modified test to specify new behavior.
Reviewers: itamaro, emacs, #cinder_porting
Reviewed By: itamaro
Subscribers: mpage, jackyzhang, orvid
Differential Revision: https://phabricator.intern.facebook.com/D39825885
Tags: publish_when_ready, cinder-310-exclusive
0 commit comments