diff options
author | Carl Meyer <carl@oddbird.net> | 2023-05-09 11:02:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 11:02:14 -0600 |
commit | c3b595e73efac59360d6dc869802abc752092460 (patch) | |
tree | 5095460e4d502af2688c132562b7d8570f33d7b0 /Python/assemble.c | |
parent | 0aeda297931820436a50b78f4f7f0597274b5df4 (diff) | |
download | cpython-c3b595e73efac59360d6dc869802abc752092460.tar.gz cpython-c3b595e73efac59360d6dc869802abc752092460.zip |
gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Python/assemble.c')
-rw-r--r-- | Python/assemble.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/assemble.c b/Python/assemble.c index 369dd8dcde9..6889831ae3f 100644 --- a/Python/assemble.c +++ b/Python/assemble.c @@ -456,6 +456,9 @@ compute_localsplus_info(_PyCompile_CodeUnitMetadata *umd, int nlocalsplus, assert(offset < nlocalsplus); // For now we do not distinguish arg kinds. _PyLocals_Kind kind = CO_FAST_LOCAL; + if (PyDict_Contains(umd->u_fasthidden, k)) { + kind |= CO_FAST_HIDDEN; + } if (PyDict_GetItem(umd->u_cellvars, k) != NULL) { kind |= CO_FAST_CELL; } |